Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to create a report using single dax.
In dax i used different variablies like
VAR category = VALUES(Orders[Category])
VAR sub_category = VALUES(Orders(sub-category])
VAR products = VALUES(Orders[Products])
VAR total_sales = SUMX(Orders , Orders[Sales])
VAR avg_sales = AVERAGEX(Ordres , Orders[Sales])
VAR result = ???? (I want to add all these VAR in result to show as report)
RETURN result
Are you talking about Calculation Groups?
See this video as an example: How to set up and use Calculation Groups in DAX | Power BI (youtube.com)
Can you privide a sample input and output in text format so it's easier to understand your requiremnts.
Proud to be a Super User!
Thanks @amustafa ,
According to my knowledge Calculation Groups work with single dimension like
Category | Total Sales | Average Sales |
abc | 50 | 25 |
I am tring to create a report using single dax my expected result is :
Category | Sub-Category | Product | Total Sales | Average Sales |
Furniture | office | lma | 45 | 22.5 |
abc | pqr | xyz | 50 | 25 |
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |