Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I am trying to replace buttons with static text "Current Month" & "Previous Month" to the dynamic text with the name of month & year. I have created 2 measures that are giving me the desired value on card visual. Formulas below:
CurrentMonth_TextDate =
FORMAT(DATE(YEAR(NOW()), MONTH(NOW()), 1) , "mmmm yyyy")PreviousMonth_TextDate =
IF(MONTH(TODAY()) = 1,
FORMAT(DATE(YEAR(NOW())-1, MONTH(NOW())-1, 1), "mmmm yyyy"),
FORMAT(DATE(YEAR(NOW()), MONTH(NOW())-1, 1), "mmmm yyyy")
)The issue is that the measures are greyed out when trying to add them to the conditional formatting of button. See image below.
Any suggestions?
Thank you
IvanS
Solved! Go to Solution.
Hi @IvanS
It is working fine for the same measures. Ensure you have the Text data type for the measures.
Thanks
Hari
Hi @IvanS
It is working fine for the same measures. Ensure you have the Text data type for the measures.
Thanks
Hari
Huge thanks for quick response 🙂 issue was in formatting 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!