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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Sofinobi
Helper IV
Helper IV

filter on visual interaction

helllo all,

please, i have two visuals that don't interact correctely, (a bar chart and a matrix), when i clic on the bar chart it doesn't filter on the matrix, it happens only with one measure " Variation CA", if i change the measure it filters correctly
may be the problem is from the measure ?!! 
th Measue calculates the variation of total sales by months: 

Variation CA =
    DIVIDE ( [Vente Net], CALCULATE ( [Vente Net], DATEADD ( CALENDRIER[Date], -1, MONTH ) ), 2 )-1

as in this image, when i clic in the bar chart Seller, i need to filter on the matrix to show only the Clients of that seller.
(the problem is not in the Edit interactions)
variation filter.PNG
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@Sofinobi 

Indeed. The -1 is creating a problem of forcing all rows to appear regardless of sny filter. That is simply because -1 cannot be filtered and will never be blank. 
Please try

 

Variation CA =
VAR VentNet = [Vente Net]
RETURN
IF (
VentNet <> BLANK (),
DIVIDE (
VenteNet,
CALCULATE ( [Vente Net], DATEADD ( CALENDRIER[Date], -1, MONTH ) ),
2
)
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

@Sofinobi 

Indeed. The -1 is creating a problem of forcing all rows to appear regardless of sny filter. That is simply because -1 cannot be filtered and will never be blank. 
Please try

 

Variation CA =
VAR VentNet = [Vente Net]
RETURN
IF (
VentNet <> BLANK (),
DIVIDE (
VenteNet,
CALCULATE ( [Vente Net], DATEADD ( CALENDRIER[Date], -1, MONTH ) ),
2
)
)

thank you so much my friend, that works perfectly 

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.