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
I have a filter this filter:
and I'm trying to do a calculation depending the selected Item Type
Calculation no 1 is working fine and gives me the correct result, but no 2 and 3 are not working they return blank value.
Solved! Go to Solution.
Thank you for asking 😊
Because then I came to the thought that I have removed the interaction between the filter and report 🙄 - stupid me and sorry
Try these 3:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Thank you for answering, but it was me that made a mistake, so I close the case
Can you please try this
CALCULATE(SUM(FT_StockTransactionsDetailed[Kg]),ALL(Dim_Items[Item Type]),Dim_Items[Item Type]="Waste")
or
CALCULATE(SUM(FT_StockTransactionsDetailed[Kg]),ALL(Dim_Items),Dim_Items[Item Type]="Waste")
________________________
If this post helps, then please Accept it as the solution to help other community members find it more quickly
Click on the Thumbs-Up icon if you like this reply.
Unfortunately it doesn't help...
@LotteLaugesen Try this
VAR _selectedType =
CALCULATE ( SELECTEDVALUE ( Dim_Items[Item Type] ) )
VAR _result =
CALCULATE (
SUM ( FT_StockTransactionsDetailed[Kg] ),
FILTER ( Dim_Items, Dim_Items[Item Type] = _selectedType )
)
RETURN
_result
Unfortunately it doesn't help
@LotteLaugesen My bad. If there is a relationship between FT_StockTransactionsDetailed and Dim_Items, then you don't need to specify it again in the filter parameter. Can you explain your scenario?
Thank you for asking 😊
Because then I came to the thought that I have removed the interaction between the filter and report 🙄 - stupid me and sorry
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |