Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a Measured column that shows the variance between 2 columns..
Solved! Go to Solution.
Hi @StuartSmith ,
You can do a caluclation as follows:
NegaticveCnt = CALCULATE(DISTINCTCOUNT(tablename[Country]), tablename[GroupCol] = "Negative")
Do similar measures for Positive and 0.
Thanks,
Pragati
@StuartSmith ,
I replicated some sample at my end as per your deets.
SO create first one calculated column:
Hi @StuartSmith ,
You can try created a calculated column as follows to use on pie-chart:
GroupCalc = IF([Measure] = 0, "0 Values", IF([Measure] > 0, "Positive Values", "Negative Values"))
Replace [Measure] in above DAX with your measure/column.
Thanks,
Pragati
Thanks, your measure worked great, but then reaslied the result wasnt exactly what I wanted. I now have a table similar to the below
The chart is then conting each row, so Negative = 2, Positive = 2 & 0 = 1, but I realised that I need it to count each distinct country, so Negative = 1 (UK) , Positive = 1 (France) & 0 = 2 (Germany & Spain).
I am trying "DistinctCount" with your measure, but can figure it out. Hope that makes sense.
Hi @StuartSmith ,
You can do a caluclation as follows:
NegaticveCnt = CALCULATE(DISTINCTCOUNT(tablename[Country]), tablename[GroupCol] = "Negative")
Do similar measures for Positive and 0.
Thanks,
Pragati
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |