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.
Hello,
I have created a simple table
where measure
Count_Lost2 = if([Last_Sales]==BLANK(),1)
I want to count this coulmn. Is it not possible to count measures?
Thanks for any help.
Solved! Go to Solution.
You need to create a variable to hold the values at the granularity you want, then you can run SUMX over that. If you wanted it at year level you could use something like
Count of measure =
VAR SummaryTable =
ADDCOLUMNS ( VALUES ( 'Date'[Year] ), "@value", [Measure to count] )
RETURN
SUMX ( SummaryTable, [@value] )
Need some help, Can someone describe how excel counts and calculation can be performed in Power BI? I have a dataset and I think DAX COUNTA or COUNTAX maybe part of the solution. Please provide the format in DAX, it would be much appreciated!
Ohhh, nice! Thanks so much. It works 🤗
You need to create a variable to hold the values at the granularity you want, then you can run SUMX over that. If you wanted it at year level you could use something like
Count of measure =
VAR SummaryTable =
ADDCOLUMNS ( VALUES ( 'Date'[Year] ), "@value", [Measure to count] )
RETURN
SUMX ( SummaryTable, [@value] )
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 |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |