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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lucafirefox
Regular Visitor

Modify table comuns based on filters

I have a table like the one below and I would like to modify a column based on a filter criteria I apply using a dropdown menu.

 

Filter: clientAAA

CountrySales by all clientsSales by clientAAA
Spain30000100
France64003000
Italy500050

 

 

My idea is to have a slicer where I can select a client or a bunch of them and modify the last column of my sales table showing the sales done by the selected client split by countries. Is it doable in powerbi?  

 

Thanks!

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @lucafirefox ;

If you want to create a dynamic data, you have to create a measure, may be could try it:

Sale by client = CALCULATE(SUM([sales]),FILTER('Filter',[client]=SELECTEDVALUE('Filter'[client])))

The final output is shown below:

vyalanwumsft_0-1642751395022.pngvyalanwumsft_2-1642751410227.png

If this doesn't match your data, can you share a simple file and expect output results? It makes it easier to give you a solution.
Looking forward to your reply!


Best Regards,
Community Support Team_ Yalan Wu
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

3 REPLIES 3
lucafirefox
Regular Visitor

@v-yalanwu-msft @amitchandak 
Thanks to both of you! I'm a newbie so I'm not proficient with measures creation. I implemented your solutions and my problem is finally solved. 

 

Best,

Luca

v-yalanwu-msft
Community Support
Community Support

Hi, @lucafirefox ;

If you want to create a dynamic data, you have to create a measure, may be could try it:

Sale by client = CALCULATE(SUM([sales]),FILTER('Filter',[client]=SELECTEDVALUE('Filter'[client])))

The final output is shown below:

vyalanwumsft_0-1642751395022.pngvyalanwumsft_2-1642751410227.png

If this doesn't match your data, can you share a simple file and expect output results? It makes it easier to give you a solution.
Looking forward to your reply!


Best Regards,
Community Support Team_ Yalan Wu
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

@lucafirefox , you can not create a column with a slicer with a filter value.

 

You need measure

Client Value  = Sum(Table[Value])

Country Value all client = calculate(Sum(Table[Value]) , allexcept(Table, Table[country]) )

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.