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
Hi Everyone,
I have a quick doubt please if anyone can help?
I am working on a data provided with ID's, months starting from June'19 to March'20(which will extend till June'20) and category/state(text data) of id. I want to look for ID's that have not changed their state from last 3 months, last 6 months, last 9 months and so on. Can we do that on powerbi?
Solved! Go to Solution.
Updated and attached:
3 Months the Same Column =
VAR __Current = [Category]
VAR __Table = FILTER('FactTable1',[Month] <= EARLIER([Month]) && [Month] >= (EARLIER([Month]) - 90) && [ID] = EARLIER([ID]))
VAR __Check = FILTER(__Table, [Category] <> __Current)
RETURN
IF(ISBLANK(COUNTROWS(__Check)), "Same", "Changed")
Yes, you would generally do that something like:
3 Months the Same Column =
VAR __Current = [Category]
VAR __Table = FILTER('Table',[Month] >= ([Month] - 90))
VAR __Check = FILTER(__Table, [Category] <> __Current)
RETURN
IF(ISBLANK(__Check), "Same", "Changed")
I tried your formula by adding another column in data, but I am getting below error on power bi. Is there anything I am doing wrong
I have attached excel file and PBI for your reference.Excel File (Sample) PBI
Really Thanks for your help! 🙂
OK, sorry, try this:
3 Months the Same Column =
VAR __Current = [Category]
VAR __Table = FILTER('FactTable1',[Month] >= ([Month] - 90) && [ID] = EARLIER([ID]))
VAR __Check = FILTER(__Table, [Category] <> __Current)
RETURN
IF(ISBLANK(COUNTROWS(__Check)), "Same", "Changed")
PBIX is attached:
Thanks for your quick help 🙂
It is working, but its working for account changin for all months rather than just 3 months or 6 months or 9 months. I have attached PBI with data for other months data included and screenshot for your reference
Updated and attached:
3 Months the Same Column =
VAR __Current = [Category]
VAR __Table = FILTER('FactTable1',[Month] <= EARLIER([Month]) && [Month] >= (EARLIER([Month]) - 90) && [ID] = EARLIER([ID]))
VAR __Check = FILTER(__Table, [Category] <> __Current)
RETURN
IF(ISBLANK(COUNTROWS(__Check)), "Same", "Changed")
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!