Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm trying to write a new measure that returns a count of rows where an existing measure equals 1. I've tried many different approaches, the latest being:
NewMeasure = COUNTROWS(FILTER('MyTable', [MyExistingMeasure] <> 0 ))
and
NewMeasure = CALCULATE([MyExistingMeasure],FILTER(VALUES(MyTable),[MyExistingMeasure]=1))
etc.
The existing measure returns a 1 when its conditions are met or 0 when not. I am pretty sure it is working as expected as I can apply a filter to a table visual with the parameter "MyExistingMeasure is 1" and it only shows rows I'd expect to see.
I am trying to create a card that shows the total count of rows with a 1 in that measure and thought a new measure that creates the counts would be the way to go.
Stumped. Help appreciated.
Regards,
_nerdy
Solved! Go to Solution.
@_nerdy , to count a measure you need a context or grouping level, Assume you have id
example measure
Countx(filter(values(MyTable[ID]) ,[MyExistingMeasure] =1), [ID])
of use visual level filter MyExistingMeasure =1
@_nerdy , to count a measure you need a context or grouping level, Assume you have id
example measure
Countx(filter(values(MyTable[ID]) ,[MyExistingMeasure] =1), [ID])
of use visual level filter MyExistingMeasure =1
This just helped solve my problem 😁
Thanks
Solved my problem too! TY!
Amazing, thank you! 😁
Hi, @_nerdy
Try this:
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |