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.
Hi!
This graph shows the number of calls and non-calls per region, and I need to create a measure to calculate the difference (in percentage) between the CW 11 – our reference - and the latest column selected by the user.
In this case, for example: CW 27 divided by CW11.
Obs: CW 27 can be any other week, and CW11 is fixed.
I can’t do that because I don’t know how to “ignore” on calculation the numbers between the columns and how to consider the latest CW selected.
*Caledar week: CW
Do you have any idea, please?
Solved! Go to Solution.
Hi, @v-jayw-msft ,
Thanks for your reply.
I tried to add it, but still didn't work.
Anyway I found another solution:
@Anonymous , in case you have date and date table
measure =
var _min = minx(allselected(Date),Date[Date])
var _max = maxx(allselected(Date),Date[Date])
return
calculate( [measure], filter(all(Date), Date[Date]=_max)) - calculate( [measure], filter(all(Date), Date[Date]=_min ))
if you have week and week table, else have week table
measure =
var _min = minx(allselected(week),week[week])
var _max = maxx(allselected(week),week[week])
return
calculate( [measure], filter(all(Date), Date[Date]=_max)) - calculate( [measure], filter(all(Date), Date[Date]=_min ))
Hi, Mr. @amitchandak.
Thanks for your help!
I have a table with weekly data, so I need to consider this one:
measure =
var _min = minx(allselected(week),week[week])
var _max = maxx(allselected(week),week[week])
return
calculate( [measure], filter(all(Date), Date[Date]=_max)) - calculate( [measure], filter(all(Date), Date[Date]=_min ))
But I still have some doubts...
I'm trying to replace by my columns (name of table is "Traffic Development"), but it's not working. What is wrong?
I put in red above the part of measure that i didn't understand.
Thanks again!
Hi @Anonymous ,
The logic is to calculate the values for earliest week and latest week in your visual.
I noticed that in your formula you lost ")" in ALLSELECTED() function.
Should be:
MINX(ALLSELECTED('Traffic Development'),'Traffic Development'[Calendar Week])
Best Regards,
Jay
Hi, @v-jayw-msft ,
Thanks for your reply.
I tried to add it, but still didn't work.
Anyway I found another solution:
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |