Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
Is there a way to create total sales and SPI% measure irrespective of the filters selection.It would be great if it is done in dax because I want to use the same measure for further calculations.
Data:
Country | State | Sales |
US | LA | 1512 |
India | MH | 1515 |
US | DC | 1548 |
India | AP | 4123 |
Output:
Country | Total Sales | SPI % |
India | 8698 | 5638/8698 |
US | 8698 | 3060/8698 |
Thanks in advance
Solved! Go to Solution.
@Anonymous
Doesn't the following work?
No filters = CALCULATE([Sum Measure], ALL(Fact Table))
Proud to be a Super User!
Paul on Linkedin.
@Anonymous
Doesn't the following work?
No filters = CALCULATE([Sum Measure], ALL(Fact Table))
Proud to be a Super User!
Paul on Linkedin.
@Anonymous ,
Try like
calculate(Sum(Table[Sales]), all(Table))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi @Anonymous
Create measures as
Total Sales = calculate(Sum(Table[Sales]), all(Table))
&
SPI % = Devide('Table' [Sales], Sum( 'Table'[Sales]))
Thanks,
Nirav
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
98 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |