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
Anonymous
Not applicable

I am trying to limit the date on x-axis

Working: If the date is less than 2019,03,31(fixed) Show the dates in the column 

DateTest1 = IF('Invoked Function'[Date]<DATE(2019,03,31),'Invoked Function'[Date])
 
Not Working: If the date is less than the captured slicer date, Show the dates in the column
DateTest2 = IF('Invoked Function'[Date]<FIRSTDATE('Invoked Function'[Date]),'Invok
ed Function'[Date])
 
In the below image you can see that the FIRSTDATE('Invoked Function'[Date]) captures the slicer date but somehow not plotting anything on the x-axis.
Untitled.jpg

 

3 REPLIES 3
Anonymous
Not applicable

The DateTest1 column generates values but the DateTest2 column does not generates any value. See the image.

I am just trying to pass the slicer date as a limit to the date range.

 

DateTest2 = IF('Invoked Function'[Date]<"Slicer Date",'Invoked Function'[Date])
Untitled3.jpg
 
aj1973
Community Champion
Community Champion

Hi @Anonymous 

You can use the Format pane to adjust the range you want for your visual

aj1973_0-1675903789612.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

It does not work, if I put the maximum field value to =FIRSTDATE('Invoked Function'[Date])
 
FIRSTDATE('Invoked Function'[Date]) is the slicer value as the card visual shows. This slicer Date is the maximum limit for the bars. Interaction between a slicer and the bar chart is turned off. 
 
It can be done if I change the slicer to "Before" dates but the slicer has to stay with "After" dates. That is why the interaction between them is turned off. See the image.Untitled.jpg

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.