The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |