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

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.

Reply
Kumar_rohit4
Frequent Visitor

Visual filters not working on calculated measure

I was looking to get the last year week numbers to the current year week

I have created one calculated column and one measures named

 

DWY = GICC_Incident_View[week]*10000+GICC_Incident_View[FiscalYear]

 

Measure 2 = CALCULATE([CY INC minus LY INC],FILTER(ALL(GICC_Incident_View),GICC_Incident_View[DWY]=MAX(GICC_Incident_View[DWY])-1))
 
But whenever i filter based on the team the numbers do not chnage.
Screenshot (207).png
Screenshot (208).png
 
Do let me know if i can do something to make this work
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Kumar_rohit4 , try allselected in place of all and check

 

CALCULATE([CY INC minus LY INC],FILTER(allselected (GICC_Incident_View),GICC_Incident_View[DWY]=MAX(GICC_Incident_View[DWY])-1))

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

1 REPLY 1
amitchandak
Super User
Super User

@Kumar_rohit4 , try allselected in place of all and check

 

CALCULATE([CY INC minus LY INC],FILTER(allselected (GICC_Incident_View),GICC_Incident_View[DWY]=MAX(GICC_Incident_View[DWY])-1))

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.