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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.