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! Request now

Reply
Raj4BI
New Member

Filter only some rows in a column based on condition

Hello, 

         Please help with the approach I need to follow in my case. 

I have a table1 with userid, locationid, date,  and

table 2 with locationid, loc, username, prodname.

 

In the begining of the year they changed prodname for one product from "oldpn" to "newpn" but both have the same locationid(1234). so in the existing report when "newpn" is selected in the option, the measures calculates count(userid) which include "oldpn" numbers as well. 

 

To avoid this I thought replace the userid in table1 to null or something when locationid = 1234 and date <"01/01/2023", but that didn't work. Also I don't want to change the data if possible. 

 

Can someone please provide a better approach for my problem. I am not sure if I clear enough in explaining my situation as well. But please let me know will try to explain in better way, have been struggling with this since 3 days already.  Thank you for any help you can provide. Thanks... 

1 REPLY 1
Raj4BI
New Member

Since I had deadline,  I just changed the query to get the data for that particular locationid from Jan and that fixed the report. 

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