Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
7 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |