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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
preacher_baby
Frequent Visitor

Matrix sees a share of category as 100% even if it is not (when slicer applied)

Hey everyone,

the problem at hand is in the following screenshots. We have a matrix visual with categories and calculation groups:

preacher_baby_0-1715084705516.png

you can see that each category has its own share and the total is 100%. but when I select a category from slicer above:

preacher_baby_1-1715084799685.png

it forgets it is a share. the measure is as follows:

 

 

 

 

 

DIVIDE(
    SUM(Category[volume]),
    CALCULATE(
        SUM(Category[volume]),
        ALLSELECTED(Category_Manuf_Brand[category])
    )
)

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@preacher_baby , if you need % even after slicer selection you should all in place of allselected  

 

Try like

 

DIVIDE(
    SUM(Category[volume]),
    CALCULATE(
        SUM(Category[volume]),
        ALL(Category_Manuf_Brand[category])
    )
)

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@preacher_baby , if you need % even after slicer selection you should all in place of allselected  

 

Try like

 

DIVIDE(
    SUM(Category[volume]),
    CALCULATE(
        SUM(Category[volume]),
        ALL(Category_Manuf_Brand[category])
    )
)

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.