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