March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All, I am getting subtotals and grandtotal incorrect in matrix when i use DAX DISTINCTCOUNT. Below screenshot shows the report where i am counting distinct agreements for each partner and sales. But in subtotals also i need the total to be proper. For example 1st total should come as 5 instead of 3. Below are the screenshots of dimensions and fact. Can anyone please help me to get proper total.
Solved! Go to Solution.
Hi @madhushree,
Making the calculation of distinct count what is done is based on the context of your pivot table I have added the aggreement i key in the pivot table and in your fact table for partner a you only have 3 agreements althougth they are distributed by 4 sales person that why the total is 3 and not 5.
You can make a measure and then add a new column and use it the count you need.
MEASURE distinct_count_agree = DISTINCTCOUNT('fact'[agrmnt key]) COLUMN AGRMT_COUNT = [distinct_count_agree]
Then you will get the expected result.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @madhushree,
Making the calculation of distinct count what is done is based on the context of your pivot table I have added the aggreement i key in the pivot table and in your fact table for partner a you only have 3 agreements althougth they are distributed by 4 sales person that why the total is 3 and not 5.
You can make a measure and then add a new column and use it the count you need.
MEASURE distinct_count_agree = DISTINCTCOUNT('fact'[agrmnt key]) COLUMN AGRMT_COUNT = [distinct_count_agree]
Then you will get the expected result.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Portuguêshi i have somehow same problems to get currtect column summurization or rowwise sumurization,
please could u quide me how can i get sum in visual level number from each months.
please check the picture attached
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
169 | |
144 | |
90 | |
70 | |
58 |