The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 dax to get the final sales amount. Something like SUMX(GROUPBY(...)). The problem is that I can't use filters when I use that dax
Is there a way to create that dax and use filters?
Thank you,
Solved! Go to Solution.
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.
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.
Hi @marami21 ,
Can you please share some sample data and what you are trying to achieve?
Thanks,
Pragati
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
139 | |
110 | |
107 | |
76 | |
62 |
User | Count |
---|---|
270 | |
129 | |
123 | |
100 | |
92 |