How to do DISTINCT on multiple columns in DAX query?

I am pretty new to the DAX world. I am trying to do get distinct records on multiple columns in DAX query similar to the way I do in SQL. I tried joining two tables based on the model in the Query Designer which gave me the following query. EVALUATE SUMMARIZECOLUMNS( ‘Dim_Products'[SaleCode], ‘Dim_Products'[ProducttName], ‘Dim_TimeZone'[StartDate], ‘Dim_TimeZone'[StartTime],…

Details

Browser-friendly way of drawing rectangles on top of image R Shiny

Minimal reproducible example of a shiny app that draws rectangles on top of an image: library(shiny) library(png) library(RCurl) myurl = ‘https://raw.githubusercontent.com/Tixierae/deep_learning_NLP/master/CNN_IMDB/cnn_illustration.png’ my_img = readPNG(getURLContent(myurl)) img_height = dim(my_img)[1] img_width = dim(my_img)[2] server = function(input, output) { observe({ outfile = tempfile(tmpdir=’./’, fileext=’.png’) png(filename=outfile,width=img_width,height=img_height) par(mar=c(0,0,0,0),xaxs=’i’, yaxs=’i’) plot(NA,xlim=c(0,img_width),ylim=c(0,img_height)) rasterImage(my_img,0,0,img_width,img_height) if (!is.null(input$image_brush)){ b_in = lapply(input$image_brush,as.numeric) if (!is.null(b_in$xmin)){ rect(b_in$xmin,img_height-b_in$ymax,b_in$xmax,img_height-b_in$ymin,border=’green’,lwd=5) } }…

Details