Forum Discussion
Anonymous
3 years agoNot 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 tabl...
- Anonymous3 years ago
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
Anonymous
3 years agoNot 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