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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
nmck86
Post Patron
Post Patron

Category Breakdown Percentage Weighted Twice

Hello, I have an issue with my report... essentially I am calculating a score with double weights and am having issues applying date filters and the values filtering correctly. In the file below I have a category breakdown that should always be representative of the NPS new column. Meaning that if you select a date, or add a date to the visual or add multiple states at the same time they dynamically update. Can anyone help me with this?

 

 

Link: https://drive.google.com/file/d/1UlMr8qy5dyTFSmuvEhDck9MHrM84Qkvb/view?usp=sharing

 

 

image 1.jpgimage 2.jpg

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi  @nmck86 ,

 

If I can interpert your question correctly you want to make the multiplication of the Weight by the Base weitgth per row, sum all those values and then divede by the total of that multiplication correct?

 

Try the following measure:

 

Category Breakdown =
DIVIDE (
    SUMX (
        Scores;
        CALCULATE ( SUM ( 'Scores'[WEIGHT] ) * SUM ( 'Scores'[Base Weight] ) )
    );
    SUMX (
        ALLSELECTED ( Scores );
        CALCULATE ( SUM ( 'Scores'[WEIGHT] ) * SUM ( 'Scores'[Base Weight] ) )
    )
)

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi  @nmck86 ,

 

If I can interpert your question correctly you want to make the multiplication of the Weight by the Base weitgth per row, sum all those values and then divede by the total of that multiplication correct?

 

Try the following measure:

 

Category Breakdown =
DIVIDE (
    SUMX (
        Scores;
        CALCULATE ( SUM ( 'Scores'[WEIGHT] ) * SUM ( 'Scores'[Base Weight] ) )
    );
    SUMX (
        ALLSELECTED ( Scores );
        CALCULATE ( SUM ( 'Scores'[WEIGHT] ) * SUM ( 'Scores'[Base Weight] ) )
    )
)

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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