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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MSMKM
Helper I
Helper I

Instead of 5 column how can i retrive when you selected any one total MTD,Total QTD, Total YTD

Hi Team,

 

when i added year wise total --- TotalMTD,TotalQTD, TotalYTD....  my questions below 

1. how we can filter ? if we needed any of TotalMTD,TotalQTD, TotalYTD this ?

 

Thanks,

Krishna 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @MSMKM 
One method can be acheived through ustilizing a matrix visual instead of a table. Place the Year column in the rows of the matrix and place the MeasureNames[Measure] column in the columns of the matrix. Then place the proposed measure in the values. (Please refer to attached sample file with the solution).
1.png

Measure = 
SWITCH (
    SELECTEDVALUE ( 'MeasureNames'[Measure] ),
    "Total YTD", [Total YTD],
    "Total MTD", [Total MTD],
    "Total QTD", [Total QTD]
)

 

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @MSMKM 
One method can be acheived through ustilizing a matrix visual instead of a table. Place the Year column in the rows of the matrix and place the MeasureNames[Measure] column in the columns of the matrix. Then place the proposed measure in the values. (Please refer to attached sample file with the solution).
1.png

Measure = 
SWITCH (
    SELECTEDVALUE ( 'MeasureNames'[Measure] ),
    "Total YTD", [Total YTD],
    "Total MTD", [Total MTD],
    "Total QTD", [Total QTD]
)

 

@tamerj1 --- thanks a lot .its working...

FreemanZ
Super User
Super User

hi @MSMKM 

can you elaborate your expectation?

Hi FreemanZ,

 

Recently i have attend an interview in that they are asked a question like below 

MSMKM_1-1675589099238.png

If you select any One totalYTD, TotalMTD,TotalQTD, other columns will be hide? how you will do ? 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.