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
qmartiny
Helper III
Helper III

How to display multiple measures at once in a table (created with SWITCH(ALLSELECTED) + slicer ?)

Hello,

 

I hope you can help.

 

I have set up a slicer + measure combo to display a measure based on quarter selected. 

 

ex  :

q_select= IF(HASONEVALUE(quarter_select[Measure]),SWITCH(ALLSELECTED(quarter_select[Measure]),"Q1",[Q1#],"Q2",[Q2 #],"Q3",[Q3 #], "Q4", [Q4 #], "YTD",[YTD]))

Currently if the user wants the combined Q I set up YTD to be the sum of all Q.
 
However I get the ask to display Q1,Q2,Q3,Q4 separately in a table (eachcolumn a quarter).
 
Any idea how to achieve this ? 
 
Thanks a lot for your help. 
 
Quentin

 

1 ACCEPTED SOLUTION

Hi @qmartiny 

You could use two button to switch between each Quarter meausre or all quarter measures to show on a table.

Capture17.JPGCapture18.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @qmartiny 

If you have a table with dates and value column, 

you could create a date table,

date =
ADDCOLUMNS (
    CALENDARAUTO (),
    "year", YEAR ( [Date] ),
    "month", MONTH ( [Date] ),
    "quarter", IF (
        MONTH ( [Date] ) <= 3,
        "Q1",
        IF ( MONTH ( [Date] ) <= 6, "Q2", IF ( MONTH ( [Date] ) <= 9, "Q3", "Q4" ) )
    )
)

Capture9.JPG

add "quarter" from "date table" to the matrix "column" field,

Capture10.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie @v-juanli-msft 

 

The problem I am facing is that the values I want to show exist only as measures with (CALCULATE(DISTINCTCOUNT, FILTER)) logic.

There is no direct link between a date and a measure for example. The business looks at quarter achievement based on multiple factors.

 

I have this quarter select measure to toggle between each measure based on slicer.

 

But now I want to show each measure at once in the same table.

 

That';s the issue I am facing.

 

Thanks again

 

Q

Hi @qmartiny 

You could use two button to switch between each Quarter meausre or all quarter measures to show on a table.

Capture17.JPGCapture18.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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