Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I made a measure to see if the min value is equal to max value. I need it to make a gauge visual to show the total number of distinct BARCODE and the total BARCODE with correct data.
Total BARCODE: 70657
Total DISTINCT BARCODE: 29466
SUM of correct data: 55624
DAX formula:
ESPA_csv
BARCODE | Status_WF_NO | TOTAL_AMOUNT_ORIGINAL |
71572107 | 50 | 0 |
71572107 | 70 | 0 |
71572107 | 75 | 1880,74 |
71572107 | 90 | 1880,74 |
71572107 | 91 | 1880,74 |
71572107 | 99 | 1880,74 |
71586230 | 20 | 0 |
71586230 | 30 | 0 |
71586230 | 50 | 0 |
71586230 | 70 | 0 |
71586230 | 90 | 290,98 |
71586230 | 91 | 290,98 |
71586230 | 99 | 290,98 |
71586233 | 20 | 0 |
71586233 | 30 | 0 |
71586233 | 50 | 0 |
71586233 | 70 | 0 |
71586233 | 90 | 75,94 |
71586233 | 91 | 75,94 |
71586233 | 99 | 75,94 |
71591608 | 20 | 250 |
71591608 | 30 | 250 |
71591608 | 90 | 250 |
71591608 | 91 | 250 |
71591608 | 95 | 250 |
Thank you.
Solved! Go to Solution.
it looks like my first reply was not posted for whatever reason.
meantime I created a new table with distinct BARCODES and made the calculated columns based on the new table. it worked.
Thank you.
Not sure what "correct data" means.
Distinct count of barcode would be:
DISTINCTCOUNT('ESPA_csv'[BARCODE]
I feel like perhaps you need to do a SUMMARIZE and then ADDCOLUMNS your QPI_Amount but in your QPI_Amount, RETURN CorrectAmount var and then you can aggregate over that table using COUNTX, etc.
it looks like my first reply was not posted for whatever reason.
meantime I created a new table with distinct BARCODES and made the calculated columns based on the new table. it worked.
Thank you.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |