Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
The Power BI photo is simply a count patients per day and created a date grouping by month. Each Month the count is correct but the total is not a grand total (possibly the distinct count for all the months of the measured dates). The "Excel" formula its showing the "Grand Total" or another words the sum of all the counts in the above rows. Is there a way to force the total for a measure to become a "Grand Total" instead of what ever method the visual comes up with for that Visual????
Solved! Go to Solution.
The v-shex-msft idea is good one, but you have to update ISFILTERED with ISCROSSFILTERED.
Supposing [Distinct Patients] is your original measure, you can create another measure
In case anyone reads about the issue of using distinct count in Power BI Visuals and discovering the totals to not be a sum of your counts and instead of a SUM Total of the counts, Power BI provides the grand total as a distinct count of the entire range of dates, then I'm summarizing the solution below.
In this case, I wanted a distinct count of patients per month and my original formula when filtered in a visual per month the data per month was corrrect. The original formula being
In case anyone reads about the issue of using distinct count in Power BI Visuals and discovering the totals to not be a sum of your counts and instead of a SUM Total of the counts, Power BI provides the grand total as a distinct count of the entire range of dates, then I'm summarizing the solution below.
In this case, I wanted a distinct count of patients per month and my original formula when filtered in a visual per month the data per month was corrrect. The original formula being
In case anyone reads about the issue of using distinct count in Power BI Visuals and discovering the totals to not be a sum of your counts and instead of a SUM Total of the counts, Power BI provides the grand total as a distinct count of the entire range of dates, then I'm summarizing the solution below.
In this case, I wanted a distinct count of patients per month and my original formula when filtered in a visual per month the data per month was corrrect. The original formula being
In case anyone reads about the issue of using distinct count in Power BI Visuals and discovering the totals to not be a sum of your counts and instead of a SUM Total of the counts, Power BI provides the grand total as a distinct count of the entire range of dates, then I'm summarizing the solution below.
In this case, I wanted a distinct count of patients per month and my original formula when filtered in a visual per month the data per month was corrrect. The original formula being
HI @surfingjoe ,
You can try to use following measure if it works. (I replace normal total level calculation with a specific formula )
Measure = IF ( ISFILTERED ( Table[Date] ), COUNTROWS ( VALUES ( Table[Patient] ) ), SUMX ( SUMMARIZE ( ALLSELECTED ( Tabel ), [Date], "DC", COUNTROWS ( VALUES ( Table[Patient] ) ) ), [DC] ) )
Regards,
Xiaoxin Sheng
The v-shex-msft idea is good one, but you have to update ISFILTERED with ISCROSSFILTERED.
Supposing [Distinct Patients] is your original measure, you can create another measure
Just so you know, your solution works except the "allselected" portion of the formula. I did the edit as follows:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |