Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I have a pbix which is supposed to show how many requests are sent to shared mailbox. For that every subject needs to be deduplicated before putting in on chart.
For now I have a stacked column chart with number of distinct subjects every day but I need to make it stacked column chart with number of distinct values overall just as outlook shows conversations so if the same subject was sent in several days it should be only counted on last date.
I tried to make a measure to eliminate duplicates and then putting it on chart but it doesn't work, how should I change it to make it work?
Solved! Go to Solution.
Measure:
LastOccurrenceCount =
CALCULATE(
DISTINCTCOUNT(YourTable[Subject]),
FILTER(
YourTable,
YourTable[Date] = CALCULATE(MAX(YourTable[Date]), ALLEXCEPT(YourTable, YourTable[Subject]))
)
)
Add this measure to your stacked column chart to show distinct subjects, counted only on their last occurrence date.
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Measure:
LastOccurrenceCount =
CALCULATE(
DISTINCTCOUNT(YourTable[Subject]),
FILTER(
YourTable,
YourTable[Date] = CALCULATE(MAX(YourTable[Date]), ALLEXCEPT(YourTable, YourTable[Subject]))
)
)
Add this measure to your stacked column chart to show distinct subjects, counted only on their last occurrence date.
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Thanks very much it helped a lot! 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
34 |
User | Count |
---|---|
95 | |
78 | |
52 | |
49 | |
47 |