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
JustinDoh1
Post Prodigy
Post Prodigy

How to create value for Month Index (to display incomplete month)?

I am sharing my Pbix file here.

 

I am trying to show the values inside Dec. 2021 with a different color so that user could distinguish that this month is not complete.

 

JustinDoh1_0-1638834111556.png

 

I Googled and found this site that explains how to do it, but I am stuck how I create Month Index:

It appears that I cannot pursue without getting some type of key value of each month to create logic further.

 

Bottom are two screenshots from the same site:

 

JustinDoh1_1-1638834283014.png

JustinDoh1_2-1638834434056.png

How do we create the value for Month Index?

 

Thanks for help.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JustinDoh1 , Create one of the measure  and use that in conditional formatting using files value option

 

if( max('Date'[Month]) = format(Today(), "MMM YY" ), "Yellow", "white")

 

or

if( eomonth(max('Date'[Date]),0) = eomonth(Today(), 0 ), "Yellow", "white")

 

refer

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

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

2 REPLIES 2
amitchandak
Super User
Super User

@JustinDoh1 , Create one of the measure  and use that in conditional formatting using files value option

 

if( max('Date'[Month]) = format(Today(), "MMM YY" ), "Yellow", "white")

 

or

if( eomonth(max('Date'[Date]),0) = eomonth(Today(), 0 ), "Yellow", "white")

 

refer

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

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

@amitchandak Thank you so much for your prompt response and help.

I have a question.

So, what is logic here?

I think I got the first part, but I am not sure about the second part/logic.

format(Today(), "MMM YY" ) or eomonth(Today(), 0 )   

Thanks.

 

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