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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.