Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi,
I'm looking to only see the total of Chairs in the "Tables" filter context only.
I've created a measure that gets rid of the filter conext at sub-category column.
Solved! Go to Solution.
@khaeshr46, here is my suggested solution.
Create a measure called [Sales for Chairs in Tables]:
Sales for Chairs in Tables =
SUMX(
VALUES(YourTable[Subcat]),
IF(YourTable[Subcat] = "Tables", CALCULATE(SUM(YourTable[sales]), YourTable[Subcat] = "Chairs"))
)
This gives me the following results with a subset of your data:
Hope this helps.
@khaeshr46, here is my suggested solution.
Create a measure called [Sales for Chairs in Tables]:
Sales for Chairs in Tables =
SUMX(
VALUES(YourTable[Subcat]),
IF(YourTable[Subcat] = "Tables", CALCULATE(SUM(YourTable[sales]), YourTable[Subcat] = "Chairs"))
)
This gives me the following results with a subset of your data:
Hope this helps.
Did the job! Thanks!!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
33 | |
16 | |
13 | |
10 | |
8 |
User | Count |
---|---|
59 | |
20 | |
12 | |
11 | |
10 |