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
I’m currently using direct query to bring my dataset in powerbi.
I’m trying to create a measure in DAX such that the calculation is always done at a summarized view of the customer product level given a date context.
Here is an example. I have a sales table as noted below
If the user selects year 2020 and month 1, it computes the answer which is the sum of the (change in sales at a customer product level / Total prior year Sales). Hence regardless of any dimension attributes or selecting sales rep, this sum is always computed at the customer product level. In the case below the answer is -0.32203.
Can some help with this? See sample dataset attached. I believe the summarize dax function is not compatible with direct query. Hence looking for some other suggestion on measures.
Excel File Sample Data (same as above sales dataset in case link does not work)
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
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 August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
79 | |
73 | |
49 | |
40 |
User | Count |
---|---|
139 | |
119 | |
74 | |
64 | |
63 |