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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RezkinGaland
New Member

If logical test return value from another column

Hello everyone,

 

I'm very new to Dax and powerBI so working my way around it.

 

Presently I'm trying to show the data in another column based on todays date.

 

The below DAX xommand which doesn't work:

PeriodNumber test = IF(Mars_Calendar[CalendarDate] = TODAY(), (Mars_Calendar[Period]))

 

I'm sure I'm missing something pretty basic but any help would be apperciated.

 

KR,

Rob.

2 REPLIES 2
amitchandak
Super User
Super User

@RezkinGaland  Not clear what are you trying here.  Can you share sample data and sample output in table format?

 

example

Is Today = if(Mars_Calendar[CalendarDate] =TODAY(),"Today",Mars_Calendar[CalendarDate] &"")

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

Thank you for your response.

 

CalendarDate is a column that dynamically keeps to todays date. What I then want to do is based on todays date in calendar date, show the correspondingcontents in the field 'PeriodNum'. 

 

So if 'CalendarDate' = TODAY(), show the 'PeriodNum' data.

 

RezkinGaland_0-1631789477435.png

 

Hopefully that makes sense.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.