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
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
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.