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

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

@v-xinruzhu-msft 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?

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.

v-xinruzhu-msft
Community Support
Community Support

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

Top Solution Authors