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
MarMarone
Regular Visitor

Dynamics Measures in matrix depending of filter

Hi all!

 

I have a problem, in my model I only have 2 tables (Calendar and Table1), In my filter at year I choose Year = 2022 in my matrix i want to show 3 or 4 measures, ¿is possible?

 

I have this measure (works) but only applied with one measure.

 

WhatsApp Image 2022-08-04 at 1.42.26 PM.jpeg

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @MarMarone ,

 

If you want to return two results by selecting "2022", you could combine two measures' results as text type.

You can modify it as follows

Measure =
VAR Selection =
    SELECTEDVALUE ( 'Table_Name'[Row] )
RETURN
    SWITCH (
        TRUE (),
        Selection = "2022",
            [Total_Sales] & "," & [Total_SalesPY],
        Selection = "2021", [Total_Negative],
        Selection = "2020", [Total_Gross]
    )

ShundaSteph_1-1660032238839.png

 

Note: After adding double quotes, your "2020", "2021", "2022" are in text format.

 

 

Best Regards,

ShundaSteph

 

 

lbendlin
Super User
Super User

Read about Field Parameters.  They allow you to shape your matrix according to your requirements, both for dimensions and for measures.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors