Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
hello everybody,
could please someone help me with the formula
the expression for revenue ytd works perfectly for my needs:
YTD_Act = CALCULATE ((TOTALYTD(SUM(Table[REVENUE]),Table[INVOICEDATE].[Date],"31.03")-TOTALMTD(SUM(Table[REVENUE]),Table[INVOICEDATE])),
ALLEXCEPT ( Table, Table[CUSTOMER_NAME]))
but i also had to upload some budget data to the same query and now i try to add a filter expression
Filter(Table,(Table(Source)<>"Budget")
and if i put this at the end of the whole line
YTD_Act = CALCULATE ((TOTALYTD(SUM(Table[REVENUE]),Table[INVOICEDATE].[Date],"31.03")-TOTALMTD(SUM(Table[REVENUE]),Table[INVOICEDATE])),ALLEXCEPT ( Table, Table[CUSTOMER_NAME]), Filter(Table,(Table(Source)<>"Budget"))
it doesn't recognise different customers for ytd revenue anymore and puts the same value (total revenue overall) in every line
Any ideas how to combine the expressions?
Thank you in advance
Hi @cerebro
It is because of that ALLEXCEPT ( Table, Table[CUSTOMER_NAME]) and Filter(Table,(Table(Source)<>"Budget")) in your code.
Can you share a sample of your data and result table here?
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |