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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Make a Month column values blank in a table when selected values on slicer is "YTD", "QTD"

Hi Guys,

 

I have a requirement where I want to display Month Column as Blank when the slicer selection is "YTD", "QTD", but show months as it is when other values in the slicer are selected. I am looking for a Dax command to achieve this. The Goal here is to get summarized value when "YTD", "QTD" is selected making the month columns blank, and showing them again when other slicer values are selected.

Something this way, but it is not working.

Date-MMM = IF(SELECTEDVALUE('Measures Table'[Measure Select]) in {"YTD","QTD"} ,"",FORMAT(FRD_MR[Fiscal Date],"MMM-YY"))


Any help would be highly appreciated.

 

Thanks in advance

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , You have to create a measure like

Date-MMM = IF(SELECTEDVALUE('Measures Table'[Measure Select]) in {"YTD","QTD"} ,"",FORMAT(max(FRD_MR[Fiscal Date]),"MMM-YY"))

 

or

 

Date-MMM = IF(SELECTEDVALUE('Measures Table'[Measure Select]) in {"YTD","QTD"} ,blank(),FORMAT(max(FRD_MR[Fiscal Date]),"MMM-YY"))

 

New column will not work as column can not take selected value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak ,

 

It is working, but the challenge here is I want to add this measure in the Rows Section of a Matrix. Unfortunately, It is not letting me add the new measure in the rows section. Sorry I didn't mention it earlier.

Thank You

lbendlin
Super User
Super User

an empty string "" is not the same as BLANK(). Please provide sample data in usable format and show the expected outcome.

Anonymous
Not applicable

Hi @lbendlin ,

Below is a sample scenario how I want the interaction to be:

SatwikHegde_0-1608902285931.png

I need help in writing a DAX for Column Month: Which will dynamically change values based on the slicer selection. Basically the values of Month Column should change to Blank() or "". But it is not picking values from the slicer selection with the Dax that I am using.

Thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.