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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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