Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
I have one Risk table with these columns.
Risk ID | Control ID | Control Status |
1 | 1 | Closed |
1 | 2 | Cancelled |
1 | 3 | Open |
2 | 1 | Closed |
2 | 2 | Closed |
3 | 1 | Open |
3 | 2 | Closed |
I want to create a Measure to """"Count Total of Distinct Risk ID, where none of the 'Control Status' is 'Open'."""
In short, the Measure should return 1 (i.e. Only Risk ID 2 has NO 'Control Status' = 'Open'.
Thanks alot.
Solved! Go to Solution.
@kampyy , Try a measure like
countx(filter(summarize(Table, Table[Risk ID], "_1", countrows(filter(Table, Table[Control Status] <> "Open")) , "_2", countrows(filter(Table, Table[Control Status] = "Open"))), not(isblank([_1])) && isblank([_2])), [Risk ID])
@kampyy , Try a measure like
countx(filter(summarize(Table, Table[Risk ID], "_1", countrows(filter(Table, Table[Control Status] <> "Open")) , "_2", countrows(filter(Table, Table[Control Status] = "Open"))), not(isblank([_1])) && isblank([_2])), [Risk ID])
Thank you so much amit.
I was stuck on this measure from long time.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |