Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Total Sales

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:

CountryStateSales
USLA

1512

IndiaMH1515
USDC1548
IndiaAP4123

 

Output:

CountryTotal SalesSPI %
India86985638/8698
US86983060/8698

 

Thanks in advance

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

Doesn't the following work?

No filters = CALCULATE([Sum Measure], ALL(Fact Table))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

@Anonymous 

Doesn't the following work?

No filters = CALCULATE([Sum Measure], ALL(Fact Table))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@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.

Anonymous
Not applicable

Hi @amitchandak ,

 

I have just updated the requirement can you please check this?

Anonymous
Not applicable

Hi @Anonymous 

Create measures as
Total Sales = calculate(Sum(Table[Sales]), all(Table))
&
SPI % = Devide('Table' [Sales], Sum( 'Table'[Sales]))

Thanks,
Nirav

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.