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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
THENNA_41
Post Partisan
Post Partisan

current month hide and previous month only need to show three month in dax

I have a table name called combine effective date ( custom table) 

 

created measure for 

combine effective date = DISTINCT((VALUES('Append1'[Effective Date])))

Effective date values come from Append1 table.

 

Append 1 Table Date 

THENNA_41_0-1630300013613.png

combine effective date

 

i am using for combine date for column chart axis value 

 

i  am using for slicer append 1 week date  

 

 

 

WEEK = var a = DATE(2020,08,03)
var b = IF(DatePA[Week Date] = a,"Outbound GLOBAL",IF(DatePA[Week Date]<>BLANK(),"Outbound" & DatePA[Week Date]))
return b
 
DatePA = DISTINCT((VALUES('Append1'[Week Date])))//,VALUES('PA - E2PR'[Week Date])))
 
slicer looks like
 

 

 

my column chart looks like 

 


slicer i use for date week from 

'Append1'[Week Date]
 
column chart i used  
'Append1'[Effective Date]
 
if user select july  month slicer in column chart july should be hide also only  previous monthly visible april,may.june .
 
any idea .  thanks in advance 
1 REPLY 1
amitchandak
Super User
Super User

@THENNA_41 , for that you need a slicer on independent date slicer

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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