The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |