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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors