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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HobbyS
Regular Visitor

Group Total on Specific Row

I have to following Table:

HobbyS_0-1677095594351.png

 

and the Following Dax-Code for myMeasure:

=CALCULATE(SUM(Tabelle1[Amount]); ALL(Tabelle1[Currency]))

 

I would like to have the total of all Currencies (700) to show at the Row with Currency = CHF. Like that:

HobbyS_1-1677095838581.png

 

Could you please help me with my dax formula? I tried to add an additional filter with Currency = CHF, but then i get 0 as result.

 

Thank you in advance for your help.

 

6 REPLIES 6
HobbyS
Regular Visitor

I have a solution:

=IF( HASONEFILTER ( Tabelle1[Currency] ); VAR _value = MAX(Tabelle1[Currency])
RETURN
IF(
    _value = "CHF";
    -CALCULATE(SUM(Tabelle1[Amount]); ALL(Tabelle1[Currency]));
    0
);-SUM(Tabelle1[Amount]))

So only if I have a Filter on Currency, the calculate-Formula is used. Otherwiese we are using total Amount (on Groups). Thank you @FreemanZ  and @Anonymous .

FreemanZ
Super User
Super User

hi @HobbyS 

(700) to show at the Row with Currency = CHF, what to show at other rows like EUR and USD?

or you looking for a measure like this?

 

Measure = 
VAR _value = MAX(Tabelle1[Currency])
RETURN
IF(
    _value = "CHF",
    CALCULATE(SUM(Tabelle1[Amount]), ALL(Tabelle1[Currency])),
    SUM(Tabelle1[Amount])
)

 

 

Thank you for your reply. I adjusted the measure like this:

 

=VAR _value = MAX(Tabelle1[Currency])
RETURN
IF(
    _value = "CHF";
    CALCULATE(SUM(Tabelle1[Amount]); ALL(Tabelle1[Currency]));
    0
)

 

Because if currency <> CHF I want to have 0. The solution is almost perfect, but de Group Total does not show. (should also be 700):

HobbyS_0-1677153428701.png

Do you also have a solution for this?

Anonymous
Not applicable

Try using ISINSCOPE function across the group total to obtain the same requirement.

The ISINSCOPE function is not available in my Power Pivot installation...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.