Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hey,
In tableau I can filter dimension (lets say account id) by a measure (lets say revenue).
I Drag the account id column to the filters and choose "filter by condition" - and there i define a measure boolean: sum(Revenue) >30.
it will be evaluated in account level per the level of details in my vizualization and keep only the relevent accounts.
this is happening with no need for the account id to be part of the vizualization and dynamically changes according to level of details in the graphs.
what is the equivalent in power bi for this?
I dont find any way doing it and its very basic and needful
thanks!
Solved! Go to Solution.
Hi @Amir_Meidan
To achieve dynamic filtering at the account level in Power BI (even when Account ID is not in the visual), you can use DAX to create a measure that evaluates the condition at the account level and filters out accounts that don't meet the condition
Try this updated measure:
Filtered Revenue =
CALCULATE(
SUM(Revenue[Amount]),
FILTER(
VALUES(Revenue[Account ID]), -- Iterate over each account
CALCULATE(SUM(Revenue[Amount])) > 30 -- Account-level condition
)
)
Hi @Amir_Meidan ,
You can use Visual-Level Filtering.
For example, Create a DAX measure to calculate the condition by this DAX:
Revenue Over 30 =
IF(
SUM(Revenue[Amount]) > 30,
1,
0
)
Now you can:
This filter works dynamically and adjusts to the level of detail in the visual.
But in my case I want to be applied in account level even when it's not in the visual - for example week in x axis, sum of revenue in y axis- and I want to take into account only the accounts with sum(revenue) where in this particular level of details (week) have more than 30$ revenue. I don't see how you're solution is doing the calculation on account level for each account - returning rows only for accounts with true for the condition.
Hi @Amir_Meidan,
I think you are after a visual filter. In the filter panel on selection of your visual, you can add a measure where you can specify less than etc:
Hope this helps!
Don't think it would do the same as tableau does: if my x axis is week and my data Level of details is day , and I want to sum up only revenue from account id's where in this particular level of details having revenue above 30 - just filtering the table by its original rows won't affect
Hi @Amir_Meidan
To achieve dynamic filtering at the account level in Power BI (even when Account ID is not in the visual), you can use DAX to create a measure that evaluates the condition at the account level and filters out accounts that don't meet the condition
Try this updated measure:
Filtered Revenue =
CALCULATE(
SUM(Revenue[Amount]),
FILTER(
VALUES(Revenue[Account ID]), -- Iterate over each account
CALCULATE(SUM(Revenue[Amount])) > 30 -- Account-level condition
)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |