Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everybody, i need your help with a DAX Measure. I have created this measure and it is working. (i have first created a count measure, and then my goal is to find on how many rows the count is more than 2)
Measure =
VAR
sumCount =SUMX('Fact_Sheet_TAS Time Accounting'.[Count of TS_Status running total in Time_Week])
RETURN
SWITCH(TRUE().sumCount>2.VALUE(1).BLANK())
The fact is that on the Total columns i don't have the actual total but i have alway number 1 ? Do you know the Reason for this ?
Solved! Go to Solution.
Since you have used Value(1) in switch it will give as 1 if true....
You can use COUTNROWS (FILTER( Table, [Count] > 2)).. Hope I am understanding ur requirement correctly
Hi Giavo,
As @afzalphatan has mentioned, you use DAX formula below:
Measure = COUNTROWS(FILTER('Fact_Sheet_TAS Time Accounting', [Count of TS_Status running total in Time_Week] > 2))
The result is like this:
Please refer to PBIX file: https://www.dropbox.com/s/522wvs6p2522a78/For%20Giavo.pbix?dl=0
Best Regards,
Jimmy Tao
Hi Giavo,
As @afzalphatan has mentioned, you use DAX formula below:
Measure = COUNTROWS(FILTER('Fact_Sheet_TAS Time Accounting', [Count of TS_Status running total in Time_Week] > 2))
The result is like this:
Please refer to PBIX file: https://www.dropbox.com/s/522wvs6p2522a78/For%20Giavo.pbix?dl=0
Best Regards,
Jimmy Tao
Since you have used Value(1) in switch it will give as 1 if true....
You can use COUTNROWS (FILTER( Table, [Count] > 2)).. Hope I am understanding ur requirement correctly
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |