Forum Discussion
marami21
6 years agoFrequent Visitor
SUMX and GROUPBY
Hello I have a table that groups the sales amount by date and category. That way I can use the date and category to filter the sales amount I want to save space deleting that table and use only one...
- 6 years ago
Hi, marami21
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may try to create a measure like below.
Result = SUMX( SUMMARIZE( 'Table', 'Table'[Category], 'Table'[Date], "Sales", SUM('Table'[Sales]) ), [Sales] )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-alq-msft
Community Support
6 years agoHi, marami21
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may try to create a measure like below.
Result =
SUMX(
SUMMARIZE(
'Table',
'Table'[Category],
'Table'[Date],
"Sales",
SUM('Table'[Sales])
),
[Sales]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.