Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I would like to put a filter in a formula but i didn't find the solution on the web.
Can you help me to solve it please ?
Here this is my explication :
1. I have 3 data in a table in the table "Marque"
Vetement |
Chaussures |
Accessoires |
2. I would like to create one formula for each data of the table "Marque":
=> Sum of "Turnover€ "for [Marque="Vetement"]
=> Sum of "Turnover€" for [Marque="Chaussures"]
=> Sum of "Turnover€" for [Marque="Accessoires"]
Why? Because when i create a Visual, i have a couple of formula by "client" but i don't want to multiplicate all values with the data "Marque" only the Turnover.
I haven't an other solution, if you have an optimisation of it, i'll take it 😉
Thank you in advance,
Solved! Go to Solution.
@LD1 Try:
Measure = SUMX(FILTER('Marque',[Column] = "Vetement"),[Value])
Hi @LD1 ,
You can follow the below methods to get it, please find the details in the attachment.
1. Create a slicer using the field [Marque]
2. Create measures as below to get it
Sum of Turnover for Vetement = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Vetement")
Sum of Turnover for Chaussures = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Chaussures")
Sum of Turnover for Accessoires = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Accessoires")
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
@Anonymous @Greg_Deckler
It's amazing and finally so easy... ! Thank you for your help and your solution.
Have a nice day
Hi @LD1 ,
You can follow the below methods to get it, please find the details in the attachment.
1. Create a slicer using the field [Marque]
2. Create measures as below to get it
Sum of Turnover for Vetement = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Vetement")
Sum of Turnover for Chaussures = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Chaussures")
Sum of Turnover for Accessoires = CALCULATE(SUM('Table'[Turnover€]),'Table'[Marque]="Accessoires")
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
@LD1 Try:
Measure = SUMX(FILTER('Marque',[Column] = "Vetement"),[Value])
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |