Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @schoden ,
We can create a new slicer based on a new distinct company table to meet your requirement.
1. Create a new table based on company.
distinct company = DISTINCT('Table'[company])
2. Then we can create a slicer based on the company.
3. At last we create a measure, and the result like this,
Measure = IF(SELECTEDVALUE('distinct company'[company])="A", SUM('Table'[Sales]) , CALCULATE(SUM('Table'[Sales]), NOT(CONTAINSSTRING('Table (2)'[branch],"z"))))
There is no relationship between Table and distinct table.
If it doesn’t meet you requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @schoden ,
We can create a new slicer based on a new distinct company table to meet your requirement.
1. Create a new table based on company.
distinct company = DISTINCT('Table'[company])
2. Then we can create a slicer based on the company.
3. At last we create a measure, and the result like this,
Measure = IF(SELECTEDVALUE('distinct company'[company])="A", SUM('Table'[Sales]) , CALCULATE(SUM('Table'[Sales]), NOT(CONTAINSSTRING('Table (2)'[branch],"z"))))
There is no relationship between Table and distinct table.
If it doesn’t meet you requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@schoden , You have to create a new measure
new Measure= IF(selectedvalue[company]="A", SUM(table[Sale]) , CALCUALTE(SUM(table[Sale]), NOT(CONTAINSTRINGS(table2[branch],"z" ))))
Similar example
@amitchandak Hi thanks for the reply.
Yes it is measure I applied, sorry I wrote as column.
It is not filtering ...do you have better DAX for it. ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |