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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Total Sum with Different Columns In Direct Query

Hello, 

 

I'm having trouble performing dax formula to give me the total spend for each table (asianamerican,diverse,africanamerican,wbe,divattributes) with the total coming from the fiscspend table with a relationship by the tax id. The Facts table (fiscspnd) is a direct query connection. 

 

1st Question For example, I'm looking to do Total Asian American Spend = Sum or Calculate? Asian Table [ethnicity] = "Asian Amerian"? I also tried to do related with no success. 

 

2nd Question :After having Total Asian American Spend I want to know the % of the Total Spend (this dax formula works)

 

Would just a simple % of Spend =total asianamerican spend / total spend? 

 

himiehendrix_0-1662069945077.png

 

Thank you for your guidance! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

In fact, the screenshot does not help us clarify your data structure. Can you please share some more detail about these?

How to Get Your Question Answered Quickly  

You can also try to use the following measure formula if helps:

Total Asian American Spend =
CALCULATE (
    SUM ( Fiscspend[Sales] ),
    ALLSELECTED ( Fiscspend ),
    AsianAmerian[ethnicity] = "Asian Amerian"
)

% of Spend =
[Total Asian American Spend]
    / CALCULATE ( SUM ( Fiscspend[Sales] ), ALLSELECTED ( Fiscspend ) )

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

In fact, the screenshot does not help us clarify your data structure. Can you please share some more detail about these?

How to Get Your Question Answered Quickly  

You can also try to use the following measure formula if helps:

Total Asian American Spend =
CALCULATE (
    SUM ( Fiscspend[Sales] ),
    ALLSELECTED ( Fiscspend ),
    AsianAmerian[ethnicity] = "Asian Amerian"
)

% of Spend =
[Total Asian American Spend]
    / CALCULATE ( SUM ( Fiscspend[Sales] ), ALLSELECTED ( Fiscspend ) )

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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