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

How to fix a button whose selection for 'yes' disappears because of another box?

IN DIRECT QUERY MODE

I created two visuals for:

 

Is it Today = if(DATE(YEAR('SPROC Snapshot'[ONP Date]), MONTH('SPROC Snapshot'[ONP Date]), DAY('SPROC Snapshot'[ONP Date])) = Today(), "Yes", "No")
 
and
 
Is it Last 30days = if(DATE(YEAR('SPROC Snapshot'[ONP Date]), MONTH('SPROC Snapshot'[ONP Date]), DAY('SPROC Snapshot'[ONP Date])) >= Today()-30, "Yes", "No")
 
This filters all the data to the current date if I select yes.
NULLifier_0-1666339960304.png

 

This filters to last 30days if you click yes:

NULLifier_0-1666361369581.png

 

But for some reason if the button Last 30 days is clicked no,
The is it today box only shows the selection for No (Yes dissapears)????
NULLifier_1-1666361474676.png

If i click Last 30days? Yes, then the button for Is It today? Yes appears.

NULLifier_2-1666361547853.png

 

I'm not sure why this occurs, any help would be appreciated.

 
@amitchandak @Anonymous @Greg_Deckler

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Last 30 Days include today, so when you make it no you will not get yes for last 30 days.

 

Check if TI based on today can help

https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304

 

You can create field parameter or calculation group

 

Today = CALCULATE([Net], FILTER('Date','Date'[Date] = Today() ) )

 

Last 30 Days= CALCULATE([Net], FILTER('Date','Date'[Date] <= Today() && 'Date'[Date] >= Today() -30 ) )

 

https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Last 30 Days include today, so when you make it no you will not get yes for last 30 days.

 

Check if TI based on today can help

https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304

 

You can create field parameter or calculation group

 

Today = CALCULATE([Net], FILTER('Date','Date'[Date] = Today() ) )

 

Last 30 Days= CALCULATE([Net], FILTER('Date','Date'[Date] <= Today() && 'Date'[Date] >= Today() -30 ) )

 

https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304

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

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