Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I currently have a table as such:
Foo ID
True 234
False 443
False 443
True 678
How can I make a function that counts how many times False comes up with a unique ID? (In this example only once)
Solved! Go to Solution.
Hi @Anonymous ,
What is the expected output ?
You can create a measures
Measure = Count (Table[ID) and drag True and False Column in the visualization
or
MEasure = DISCTINCTCount(Table[id])
MEasure = CALCULATE( DISCTINCTCount(Table[id]) , Table [foo] = "False")
Regards,
Harsh Nathani
Hi @Anonymous ,
According to my understanding, you want to use Card visual to display the count of Foo based on unique ID, right?
You could use the following formula:
countByID =
CALCULATE (
COUNTROWS ( 'CountTable' ),
FILTER (
ALL ( CountTable ),
'CountTable'[ID] = MAX ( 'CountTable'[ID] )
&& SELECTEDVALUE ( CountTable[Foo] ) = FALSE ()
)
)
My visualization looks like this:
Is the result what you want? If you have any questions, please upload some data samples and expected output.
Please do mask sensitive data before uploading.
Best Regards,
Eyelyn Qin
Hi @Anonymous ,
What is the expected output ?
You can create a measures
Measure = Count (Table[ID) and drag True and False Column in the visualization
or
MEasure = DISCTINCTCount(Table[id])
MEasure = CALCULATE( DISCTINCTCount(Table[id]) , Table [foo] = "False")
Regards,
Harsh Nathani
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
This worked! However is there any way to pull those numbers into a measure so I can insert it into a nice card visual?
User | Count |
---|---|
82 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
108 | |
97 | |
86 | |
68 |