Forum Discussion
Problem with totals in visuals
- 10 years ago
Hi Richard_S,
If you just choose the count(distinct) in Power BI desktop, then the total would show the distinct count of the whole column. This is the same when using the Distinctcount measure.
To have the total show the expected total here, we need perform the following steps:
- First create a measure to distinct count the column, which you have already done([Opportunity Count] := DISTINCTCOUNT([Opportunity ID]));
- Create another measure with the following formula(put the measure here):
- [OC] := SUMX(DISTINCT(Table[Close Month]), [Opportunity Count])
This should show the expected result. See my test result:
If any further help needed, please feel free to post back.
Regards
Hi Richard_S,
If you just choose the count(distinct) in Power BI desktop, then the total would show the distinct count of the whole column. This is the same when using the Distinctcount measure.
To have the total show the expected total here, we need perform the following steps:
- First create a measure to distinct count the column, which you have already done([Opportunity Count] := DISTINCTCOUNT([Opportunity ID]));
- Create another measure with the following formula(put the measure here):
- [OC] := SUMX(DISTINCT(Table[Close Month]), [Opportunity Count])
This should show the expected result. See my test result:
If any further help needed, please feel free to post back.
Regards
Thanks again!