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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi
I want to count the duplicates for specific categories selected in a slicer. The Countries should be displayed in the slicer.
If America is chosen in the slicer, is there any way to create a calculated column of '3' for the Hot dogs value?
For example see the below table:
| Countries | Food |
| America | Hot dogs |
| America | Corn dogs |
| America | Bigmacs |
| Ireland | Stew |
| Ireland | Cabbage and bacon |
| America | Hot dogs |
| America | Hot dogs |
Thanks in advance,
Laura
Solved! Go to Solution.
Hi @Lauraeire_81 - Yes, you can achieve it both calculated column or measure too. suggest to use measure as like below:
Proud to be a Super User! | |
Hi @Lauraeire_81,
Thanks for reaching out to the Microsoft fabric community forum.
The measure provided by @rajendraongole1 pretty much helps to do the count you are looking for
Sharing reference articles for the dax function used in the measure for further reading and uploading sample pbix where i tried out the measure for reference
COUNTROWS function (DAX) - DAX | Microsoft Learn
ALLEXCEPT function (DAX) - DAX | Microsoft Learn
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi @Lauraeire_81,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Lauraeire_81,
Thanks for reaching out to the Microsoft fabric community forum.
The measure provided by @rajendraongole1 pretty much helps to do the count you are looking for
Sharing reference articles for the dax function used in the measure for further reading and uploading sample pbix where i tried out the measure for reference
COUNTROWS function (DAX) - DAX | Microsoft Learn
ALLEXCEPT function (DAX) - DAX | Microsoft Learn
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi @Lauraeire_81 - Yes, you can achieve it both calculated column or measure too. suggest to use measure as like below:
Proud to be a Super User! | |
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |