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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Matrix Table Variance -> selected value

Hi Team,

 

I have cretaed matrix table in that I need varience based on selected value from slicer.

 

APAC and EMEA is there, please advise Difference value, how do I calculate. 

 

Capture.PNG

 

Thanks,

w_Das

3 REPLIES 3
Anonymous
Not applicable

Hi @lbendlin 
I have two different slicer so they have selecting single value option
Please find the below screenshot.
Slicer1 , slicer 2 
In the table including difference in each FY
Capture2.PNG

Anonymous
Not applicable

Hi @Anonymous ,

As @lbendlin  says, there's no guarantee that your team will only choose two values, but I've created a simple example that will only calculate the difference between two values even if someone on your team chooses 3 values.

Please refer to.

Create 2 columns.

Measure =
VAR _MAX =
    MAXX ( ALLSELECTED ( 'Table' ), 'Table'[region] )
VAR _MIN =
    MINX ( ALLSELECTED ( 'Table' ), 'Table'[region] )
VAR _MAXVAL =
    CALCULATE (
        SUM ( 'Table'[value] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[date] = SELECTEDVALUE ( 'Table'[date] )
                && 'Table'[region] = _MAX
        )
    )
VAR _MINVAL =
    CALCULATE (
        SUM ( 'Table'[value] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[date] = SELECTEDVALUE ( 'Table'[date] )
                && 'Table'[region] = _MIN
        )
    )
VAR _RE = _MAXVAL - _MINVAL
RETURN
    _RE
Measure 2 = 
IF(HASONEVALUE('Table'[region]),MAX('Table'[value]),[Measure])

 

vrongtiepmsft_0-1711335314125.png

vrongtiepmsft_1-1711335330715.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

lbendlin
Super User
Super User

How are you guaranteeing that the report user always chooses exactly two regions?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors