Forum Discussion
Dax Query
Hi Mickey64,
You have taken the min of number which is a numerical column for you but for me i have a cloumn as full name of the candidates who have completed the training and for that i can't take minimum. Attaching screen shot of data as reference purpose.
So for name again i can't take minimum.
Step 1: I use your data named 'DATA_2'.
Step 2: I make a summarize table named 'Country Table'.
Country Table = SUMMARIZE('DATA_2','DATA_2'[Country],DATA_2[Trainings])
Step 3: I add 'Key' column to the 'Country Table'.
Key = [Country]&"_"&[Trainings]
Step 4: I add 'Key' column to the 'DATA_2' table.
Key = [Country]&"_"&[Trainings]
Step 5: I add a relationship.
Step 6: I add 'Count' column to the 'Country Table'.
Count = CALCULATE(COUNTROWS('DATA_2'),ALLEXCEPT('Country Table','Country Table'[Key]))
Step 7: I make 2 measures.