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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
amelief
Frequent Visitor

Filtered calculation

Hi everyone, 

I don't anderstand why ont of my filter isn't working... 

I hope you will see something I can't ! 

 

I make this table calculated : 

assistance_access = 
ADDCOLUMNS(
    ADDCOLUMNS(
        SUMMARIZE(
            'Enquête';
            'Enquête'[Année];
            'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?];
            "total";
            SUM('Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?])
        );
        "total_y";
        CALCULATE(sum('Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]);FILTER('Enquête';'Enquête'[Année]=[Année]))
   );
   "percent";DIVIDE([total]*100;[total_y])
   )

The red line working not well ! This the results :

Capturepbi.JPG

 

What I'm excpecting is to have in total_y the sum of the total per year. 

 

Have you an idea ?

thanks a lot for your help !

1 ACCEPTED SOLUTION
amelief
Frequent Visitor

I found a way ! 

 

assistance_access = ADDCOLUMNS(ADDCOLUMNS(SUMMARIZE('Enquête';'Enquête'[Année];
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            ;"total";SUM(
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            ));"total_y";CALCULATE(SUM(
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            );ALL('Enquête');'Enquête'[Année]=EARLIER('Enquête'[Année])));"percent";DIVIDE([total]*100;[total_y]))

View solution in original post

1 REPLY 1
amelief
Frequent Visitor

I found a way ! 

 

assistance_access = ADDCOLUMNS(ADDCOLUMNS(SUMMARIZE('Enquête';'Enquête'[Année];
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            ;"total";SUM(
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            ));"total_y";CALCULATE(SUM(
    'Enquête'[Comment évalueriez-vous l'accessibilité de ce service ?]
            );ALL('Enquête');'Enquête'[Année]=EARLIER('Enquête'[Année])));"percent";DIVIDE([total]*100;[total_y]))

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.