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 everyone,
I have recently created different measures to see the evolution of my data month by month and to have the line value that shows the difference in evolution between selected months.
1/ Evolution
The measures for the line chart
A/ Evolution Previous Period
B/ Difference between months to have the line chart
I have two problem
1 - I wish to make the interval for EvolutionPreviousPeriod dynamic
But this measure returns 0 in the visual even though when I check the variable in itself the result is correct.
2- My colleague have asked me to display 0 for the first month instead of the actual difference with the previous month.
Like this
Has anyone ever encountered something like that?
Thank you
Jack
Solved! Go to Solution.
@JackWren , Try measure like
Measure =
Var _min = minx(allselected('DWH Calender'),'DWH Calender'[DATES])
var _month = minx(filter(allselected('DWH Calender') , 'DWH Calender'[DATES] =_min),'DWH Calender'[Year Month])
return
if(max('DWH Calender'[Year Month]) =_month, blank(), [EvolutionPreviousPeriod])
@JackWren , Try measure like
Measure =
Var _min = minx(allselected('DWH Calender'),'DWH Calender'[DATES])
var _month = minx(filter(allselected('DWH Calender') , 'DWH Calender'[DATES] =_min),'DWH Calender'[Year Month])
return
if(max('DWH Calender'[Year Month]) =_month, blank(), [EvolutionPreviousPeriod])
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 |
---|---|
43 | |
20 | |
18 | |
16 | |
15 |
User | Count |
---|---|
49 | |
26 | |
22 | |
17 | |
16 |