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.
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])
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |