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! Learn more

Reply
Anonymous
Not applicable

KEEPFILTERS with variable is not working

Hi All, 

I have this issue where KEEPFILTERS with my variable _horizonPY is not working as expected. But if I substitute the variable with hardcode text, it is working.

 

image 162229327.pnglarge_preview.png

 

I've tried so many debugging & workarounds such as using CONCATENATE, FORMAT, VALUE, nothing is working. I tried to print the _horizonPY it is displaying correctly as "2022 H1".

 

Does anyone have an idea how to solve this?

Thank you in advanced.

 

here's the relationship:

klst28_0-1697625971834.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

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