Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello guys 🙂
That's my "model"
my calculated column "a_ClientTotal" is:
a_ClientTotal = CALCULATE(sum(Dados[Value]),ALL('Dados'),filter(Dados,Dados[Client] = EARLIER(Dados[Client])))
I'm trying to change my Date filter and my calculated column keep the value.
What I missing in my dax calculated column?
Tks.
Solved! Go to Solution.
Hi @Anonymous,
You want the returned values by a_ClientTotal can be dynamically changed depend on date slicer range, right?
If so, you should create a measure like below rather than a calculated column, as calculated column values are initialized since it is created.
a_ClientTotal = CALCULATE( sum(Dados[Value]),ALLSELECTED(Dados[Date]))
Below is the result in my test.
Best regards,
Yuliana Gu
Hi @Anonymous,
You want the returned values by a_ClientTotal can be dynamically changed depend on date slicer range, right?
If so, you should create a measure like below rather than a calculated column, as calculated column values are initialized since it is created.
a_ClientTotal = CALCULATE( sum(Dados[Value]),ALLSELECTED(Dados[Date]))
Below is the result in my test.
Best regards,
Yuliana Gu
Hi @Anonymous,
Sorry, i am not clear. What result are you expecting?
Hi, @Anonymous,
You can follow the steps bellow:
1 - Create a measure called Total Value:
Total Value = SUM(Dados[Value])
2 - Create a measure Called b_ClientTotal:
b_ClientTotal = CALCULATE([Value],ALLEXCEPT(Dados,Dados[Client],Dados[Date]))
That´s all Folks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |