Forum Discussion
GroupBy and SUM
Here is my file PBIX.
My table is abbreviated from your sample.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Thanks, so this get's me the number of checks per day. Although, I did change the formula up to DISTINCTCOUNT, vs COUNT:
NumberofChecks = DISTINCTCOUNT(Sales[Check_Number])
The problem is the grand total. See below. This gives me the daily count for each day, but because check numbers are reused daily it does not properly count for the grand total of a month.
- Nathaniel_C6 years agoCommunity Champion
Not sure how the tables are set up, but see below or you may have to use FILTER.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
NathanielNumberofChecks = CALCULATE(DISTINCTCOUNT(Sales[Check_Number], [DATE])
- v-joesh-msft6 years agoSolution Sage
Hi texasbiuser ,
This is a question about measure total, you can try the following measure:
NumberofChecks = SUMX ( VALUES ( Sales[Date] ), CALCULATE ( DISTINCTCOUNT ( Sales[Check_Number] ) ) )For more details, the following posts may be helpful:
Measure Totals, The Final Word
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.