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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
BYENER
Helper V
Helper V

Divide matrix row value with a fixed value

Hi,

 

Can someone help me with the following issue: I am using a matrix visual and I want to divide the row values with a fixed value (measure). At the moment the measure value is also splitting in categories, but I don’t want that. See below for an example:

 

Expected situation:

 

Category, Count of serial number, % of Measure

A , 20 , 20 / (500) measure

B, 50 , 20 / (500) measure

C, 1, 20 / (500) measure

D, 60, 20 / (500) measure

 

Current situation: Measure = 500

 

Category, Count of serial number, % of Measure

A , 20 , 20 / (30) measure

B, 50 , 20 / (150) measure

C, 1, 20 / (100) measure

D, 60, 20 / (220) measure

 
Thanks in advance.
2 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @BYENER

 

This should work.

Measure = 
CALCULATE(
    [Screening Volume],
    ALLSELECTED()
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

Mariusz
Community Champion
Community Champion

Hi @BYENER 

 

You can try something like.

% Sales = 
DIVIDE(
    [Sales],
    CALCULATE(
        [Sales],
        ALLSELECTED(),
        VALUES( 'Calendar'[Year Week] )
    )
) 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

View solution in original post

11 REPLIES 11
Mariusz
Community Champion
Community Champion

Hi @BYENER 

 

Try  / CALCULATE( [Measure], ALL( table[Category] ) )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

@Mariusz 

Still not working 🤔

Mariusz
Community Champion
Community Champion

Hi @BYENER 

 

How about Try  / CALCULATE( [Measure], ALL( your table ) ) 

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

@Mariusz , still the same issue. Maybe it's more clear when I show some screenshots.

 

The Card visual is the total processed volume in week 52 for origin "NL". This measure is based on the "screening" table. The matrix "category" is based on the "WIP" table. The Measure column have to show the same number as the card visual.

 

Mariusz
Community Champion
Community Champion

Hi @BYENER

 

This should work.

Measure = 
CALCULATE(
    [Screening Volume],
    ALLSELECTED()
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

@Mariusz thanks a lot! It's working and I am happy 🙂

@Mariusz one more question, when I select multiple weeks then it are dividing by the total number of the selected weeks. It have to be divide by the total number per week, because the columns in the matrix are split in weeks.

 

For example: total number of week 52 = 14358 , but it's dividing by 1.353.683 because all weeks are selected.

Untitled.png

 

 

Mariusz
Community Champion
Community Champion

Hi @BYENER 

 

You can try something like.

% Sales = 
DIVIDE(
    [Sales],
    CALCULATE(
        [Sales],
        ALLSELECTED(),
        VALUES( 'Calendar'[Year Week] )
    )
) 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

@Mariusz this is also working! Thanks a lot.

Hi @BYENER ,

If it is sloved, could you kindly accept it as a solution to close this case?


Best Regards,
Lionel Chen

 

If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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