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

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

Reply
Anonymous
Not applicable

Need help with Totals

Hey Guys,

I know the totals in Power BI have been discussed several times, yet I'm posting this simply because I still don't understand it.

LaZZaNoVa61_0-1677062697986.png


I have this table with several measures, and the total simply doesn't work.


Below are formulas of the first two columns:
# Digitaal JA E-mail Bekend = CALCULATE(
    DISTINCTCOUNT('Totaaloverzicht Fondsen'[cldeeln.Naw.Naw-Polisnummer]),
    FILTER('Totaaloverzicht Fondsen','Totaaloverzicht Fondsen'[Type E-mail] = "Bekend"),
    FILTER( 'Totaaloverzicht Fondsen', 'Totaaloverzicht Fondsen'[maia.Persoon.flDigitaalCommuniceren]=TRUE()))

% Digitaal Ja E-mail Bekend = [# Digitaal JA E-mail Bekend]/[Totaal]

Totaal = COUNT('Totaaloverzicht Fondsen'[cldeeln.Naw.Naw-Polisnummer])
 
Would appreciate if someone could explain this to me.

With kind regards,

Lazzanova


 
3 REPLIES 3
Anonymous
Not applicable

@Anonymous You are right, I did add the wrong printscreen it seems...

Here is the correct one. 

LaZZaNoVa61_0-1677223173914.png

The total of # Digitaal Ja E-mail Bekend is incorrect.
The formula for this measure is:

# Digitaal JA E-mail Bekend =
CALCULATE(
    DISTINCTCOUNT('Totaaloverzicht Fondsen'[cldeeln.Naw.Naw-Polisnummer]),
    FILTER('Totaaloverzicht Fondsen','Totaaloverzicht Fondsen'[Type E-mail] = "Bekend"),
    FILTER( 'Totaaloverzicht Fondsen', 'Totaaloverzicht Fondsen'[maia.Persoon.flDigitaalCommuniceren]=TRUE()))


So I 'm guessing I need to squeeze in SUMX somewhere in the DAX formula. Could you help me out?
Anonymous
Not applicable

Hi @Anonymous 

You can refer to the information I offered above.You can create a new measure

e.g  

Note:For the example, I add a name to your first column.

vxinruzhumsft_0-1677223745465.png

 

 

Measure=SUMX(VALUES('Totaaloverzicht Fondsen'[Type]),[# Digitaal JA E-mail Bekend])

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous 

It is not known from the picture you provided which total you are referring to does not work

If you are referring to the [% Digitaal Ja E-mail Bekend] sum, perhaps you can refer to the following measures

Note:For the example, I add a name to your first column.

vxinruzhumsft_0-1677207927431.png

% Digitaal Ja E-mail Bekend = SUMX(VALUES('Totaaloverzicht Fondsen'[Type]),[# Digitaal JA E-mail Bekend]/[Totaal])

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.