Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to display the total count by category for each line item within the category based on the slicer selections. The problem I am having is if I use a count ignoring the field used in the slicer it takes the total regardless of the slicer selection. Conversly, if I use a count without ignoring the slicer fields the totals show based on the different fields in the slicer and now the total for the category.
In the example below the total count for the category "Tropical Costa Rica" is 9, which is what I want to diplay for each date under that category. Each date has a status associated to it and there are 3 statu's selected in the slicer. The line items totals are showing the total number of dates based on the status associated to the date. If all status' were selected there are a total of 12 dates, so if I was to use a count ignoring the status filter each date would show as 12 rather than 9. Is there any way I could write a forumla to the total count for the category under each line item based on the slicer selection?
Current forumla: Calculate(Countrows('Data'),Allexcept('Data','Data'[Name],'Data'[Month]))
Solved! Go to Solution.
@sflynn , Not very clear, Try a measure like
Calculate(Countrows('Data'),filter(allselected('Data'),'Data'[Name] = max('Data'[Name]) && 'Data'[Month] =max('Data'[Month])))
Please see the following link to the pbx file with example data: https://1drv.ms/u/s!ApuQfyu6Yovsak-ZgMJmN3VH79s?e=oCnr1u
Hi,
Share the link from where i can download your PBI file.
@sflynn , Not very clear, Try a measure like
Calculate(Countrows('Data'),filter(allselected('Data'),'Data'[Name] = max('Data'[Name]) && 'Data'[Month] =max('Data'[Month])))
That worked! Thank you for help, very much appreciated.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
76 | |
74 | |
55 | |
45 |
User | Count |
---|---|
117 | |
106 | |
77 | |
66 | |
65 |