Forum Discussion
Using FILTER - same propagation need
- 9 years ago
Okay I think this is it :smileyhappy:
GT. OBJ. BIL. EUR = CALCULATE ( SUM ( phasing[VALUE] ), FILTER ( ALLSELECTED ( phasing ), phasing[TITLE] = "OBJ. BILLINGS EUR" ) )Result in PBI
And In Excel...
Hope this helps! :smileyhappy:
- 9 years ago
Sean,
I think I got it resolved. I am attaching SampleFile_v2.
Could you please check if Measures "Share Bil", "Share Cost" and "Share Margin Bil" are correct? In case you have a better solution I kindly ask you to share with us! :smileywink: :smileyhappy:
Now I have this point... If you look at the PivotTable in worksheet "BREAK_DOWN_Client" you will find:
Bill_Cost_Margin_Share_1
If I filter "AFFIPERF" in "PURE PLAYER" PivotTable column note that Shares (Bill, Cost and Margin Bil) get 100% (columns G, J and M).
Is there a way to show 50,39% for AFFIPERF even if it is filtered in PivotTable ROW or when it is filtered in Filter PivotTable section and avoid the picture below?
Bill_Cost_Margin_Share_2
Best regards,
I believe that you will need to use an ALLEXCEPT filter in your measure calculation so that you remove the matrix row context and replace it with a context of company.
- bajimmy19839 years agoAdvocate V
Hi Greg_Deckler.
I think I did wrong with the following Measure trying to use ALLEXCEPT... Could you please try to exemplify?
Note:
- Where you see "PURE_PLAYER" understand "COMPANY NAME";
- Also in my Measure you see ... "FILTER(phasing;phasing[TITLE]="OBJ. BILLINGS EUR")" just because in Table "phasing" I have one column called TITLE with two information: "OBJ. BILLINGS EUR" and "OBJ. MARGIN EUR". I think you can understand that besides my desired outcome I also need to SUM just "OBJ. BILLINGS EUR".
Measure I am using, but fail:
Grand Total OBJ. BIL. EUR := CALCULATE ( SUM ( phasing[VALUE] ); ALLEXCEPT ( phasing; phasing[PURE_PLAYER] ); FILTER ( phasing; phasing[TITLE] = "OBJ. BILLINGS EUR" ) )Best regards,
- Mi2n9 years agoMicrosoft Employee
What is the error that you are getting?
- Sean9 years agoCommunity Champion
bajimmy1983 How about this?
Grand Total OBJ. BIL. EUR := CALCULATE ( SUM ( phasing[VALUE] ); ALL ( phasing[MONTH] ); FILTER ( phasing; phasing[TITLE] = "OBJ. BILLINGS EUR" ) )or
Grand Total OBJ. BIL. EUR := CALCULATE ( SUM ( phasing[VALUE] ); ALLSELECTED ( phasing ); FILTER ( phasing; phasing[TITLE] = "OBJ. BILLINGS EUR" ) )Good Luck! :smileyhappy:
- bajimmy19839 years agoAdvocate V
Hello Sean, good morning.
Sorry, but as I am a Newbie right now, Filter Context is a little difficult to me right now. I am studing almost every day and trying to apply it as much as possible.
So, I have applied both Measures (with ALL and ALLSELECTED), but again we could not reach desire outcome. See result in Figure 1 and then what I need in Figure 2 (as examples).
Obs: Measures in Column C are just for DAX calculation and will not sit in PivoTable. Just to ilustrate to you.
WRONGRIGHT
Thnaks again and have a nice day,