Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Need help to calculate number of NG product from below chart.
I tried DAX query but could not visualize the data in report view.
=COUNTA(DISTINCT(FILTER('Raw Data','Raw Data'[Product]&&'Raw Data'[OK/NG]="NG")))
Solved! Go to Solution.
This should work for you.
Measure =
CALCULATE(
DISTINCTCOUNT(sampleTable[Product]),
FILTER(sampleTable, sampleTable[OK/NG] = "NG")
)
Proud to be a Super User! | |
This should work for you.
Measure =
CALCULATE(
DISTINCTCOUNT(sampleTable[Product]),
FILTER(sampleTable, sampleTable[OK/NG] = "NG")
)
Proud to be a Super User! | |
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
15 | |
7 | |
6 |