Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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])
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
32 | |
15 | |
14 | |
13 | |
9 |