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.
I have One Fact table with columns
Provider Key | Subgroup Key |
3 Dimentions as below
Sub Group table
Sub Group Key | MARKET_DSC | Purchaser name | Group | Subgroup
Fee Schedule table
FEE_SCHEDULE_KEY | fee schedule id | fee schedule
Provider table
Provider key|provider id
I am calculation distinct count of provider key's based on grouping of [MARKET_DSC + Purchaser name],Group,Subgroup,Fee schedule ID, Fee Schedule
Measure showing Correct disntict count for all row context but showing Wrong grand total at the end of TABLE.
Solved! Go to Solution.
Create another measure
Cnt by Entity = SUMX(VALUES(table[Legal Entity]), [cnt providers])
Assuming table[Legal Entity] is the item in the first column of your table. The SUMX forces [cnt providers] to be calculated by entity, and then summed.
Rememeber, the total row shows the result of the measure in the context of all detail rows together, not the sum of all the results. So with a simple distinctcount, it is expected that the values don't add up.
We can't see the image you linked.
Is the total count too high, or too low? If it's too high, it might be unfiltering values that you aren't showing in your data or double counting. If it's too low, it could be filtering out values you meant to be counted.
please check attached image for the same
Which total value is wrong? Cnt Providers? Should it be calculated as (72699+517+511+480+392+389+347....) or some other way?
It looks like your top row is an unfiltered amount, so it has all providers counted there, and each of the rest are filtered values under that. The total is just counting all providers once again, so you get the same value as your first row.
You may want to use a Matrix instead of a table visualization for this data.
it Should be calculated as (72699+517+511+480+392+389+347....) like this.
If i dragged my measure in card it is showing me 72699.
It is just counting distinct values from overall table and return that measure value(72699).
I want result as sum of all providers.
Create another measure
Cnt by Entity = SUMX(VALUES(table[Legal Entity]), [cnt providers])
Assuming table[Legal Entity] is the item in the first column of your table. The SUMX forces [cnt providers] to be calculated by entity, and then summed.
Rememeber, the total row shows the result of the measure in the context of all detail rows together, not the sum of all the results. So with a simple distinctcount, it is expected that the values don't add up.
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |