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 September 15. Request your voucher.

Reply
PBI_4567
New Member

Power BI - Using Primary Source of Data and then Cleaning per Client

Hello,

 

I have a SQL database I connect to. My tables contain data for various clients. I would like to:

 

1) Clean the data intially that would apply to all clients

2) Then, be able to connect to that cleaned data and filter per a client

 

Is there a way to do this? I have attempted connected to semantic model, dataflow, and datamart with no luck.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PBI_4567 ,

Based on your description, I have created these data and there are two methods over here that I suggest you to try.

vkaiyuemsft_0-1707287873422.png

Method 1: Use a calculation table.

Create a new calculation table and use dax expressions to write data applicable to the client as needed. For example, the following expression filters out the data for "client".

 

 

Table 2 =

FILTER('Table','Table'[Group1]="client")

 

 

vkaiyuemsft_1-1707287873424.png

Method 2: Use the filter pane.

You can use the filters on the right side of the report to filter the different clients. The following figure filters out the data of client1 and client2 in client.

vkaiyuemsft_2-1707287930448.png

If your original data is not quite the same as mine and different customers are in different columns, then you can do an unpivot on the data in the power query editor before doing the above. For more information on unpivot, you can refer to this document:Unpivot columns - Power Query | Microsoft Learn

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @PBI_4567 ,

Based on your description, I have created these data and there are two methods over here that I suggest you to try.

vkaiyuemsft_0-1707287873422.png

Method 1: Use a calculation table.

Create a new calculation table and use dax expressions to write data applicable to the client as needed. For example, the following expression filters out the data for "client".

 

 

Table 2 =

FILTER('Table','Table'[Group1]="client")

 

 

vkaiyuemsft_1-1707287873424.png

Method 2: Use the filter pane.

You can use the filters on the right side of the report to filter the different clients. The following figure filters out the data of client1 and client2 in client.

vkaiyuemsft_2-1707287930448.png

If your original data is not quite the same as mine and different customers are in different columns, then you can do an unpivot on the data in the power query editor before doing the above. For more information on unpivot, you can refer to this document:Unpivot columns - Power Query | Microsoft Learn

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@PBI_4567 ,

1) Use Power Query

2) Use RLS for that

 

Power BI- Row Level Security(RLS): Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors