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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Krishna2285
Frequent Visitor

Filter for a condition and populate one table value if true else populate another table value

check 3 = if (FILTER(Dim_Date,Month(Dim_Date[Date Only].[Date]) = Month(TODAY())),[check 2],[check])

here check 2 and check are built measures from 2 different tables
i am trying to get another value if the date is current month

can i get to resolve this issue?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Krishna2285 

 

Do you want a measure? If so, in which visual do you want to put it in? Is there any other field or measure in the same visual? Assume that you want a measure and add it to a table visual which already has the Date column, you can try a measure like 

Measure = IF(MONTH(SELECTEDVALUE('Dim_Date'[Date]))=MONTH(TODAY()),[Measure 1],[Measure 2])

vjingzhang_1-1681972568503.png

 

If you want to have a calculated column in the Dim_Date table, you can try DAX like 

Column = IF(MONTH('Dim_Date'[Date])=MONTH(TODAY()),"value 1","value 2")

vjingzhang_0-1681972438348.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Krishna2285 

 

Do you want a measure? If so, in which visual do you want to put it in? Is there any other field or measure in the same visual? Assume that you want a measure and add it to a table visual which already has the Date column, you can try a measure like 

Measure = IF(MONTH(SELECTEDVALUE('Dim_Date'[Date]))=MONTH(TODAY()),[Measure 1],[Measure 2])

vjingzhang_1-1681972568503.png

 

If you want to have a calculated column in the Dim_Date table, you can try DAX like 

Column = IF(MONTH('Dim_Date'[Date])=MONTH(TODAY()),"value 1","value 2")

vjingzhang_0-1681972438348.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Mahesh0016
Super User
Super User

@Krishna2285  can share demo dataset and Output you want.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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