Forum Discussion
custom X-axis
According to your description, you want to compare same campaign last year(similar to YOY comparisons). Right?
The axis is from the data field in your dataset, you can’t custom axis unless you create a column with all your custom values and put it onto axis. In this scenario, you should still use complete date as X-axis and display two campaigns data together, you can use DATEADD and DATEDIFF function to dynamically get correct days back since two campaigns may have different start date and duration.
The formula below is for your reference.
CPA 2015.1 =
CALCULATE (
[CPA],
dados[Conta] = IdCampanha[Conta]
&& IdCampanha[2015.1_I] <> BLANK ()
&& dados[Dia] >= IdCampanha[2015.1_I]
&& dados[Dia] <= IdCampanha[2015.1_F]
)
CPA 2016.1 =
CALCULATE (
[CPA],
dados[Conta] = IdCampanha[Conta]
&& IdCampanha[2016.1_I] <> BLANK (),
DATEADD (
dados[Dia],
DATEDIFF (
MAX ( ALL ( IdCampanha[2015.1_I] ) ),
MAX ( ALL ( IdCampanha[2016.1_I] ) ),
DAY
),
DAY
)
)
Regards
- v-ljerr-msft10 years agoMicrosoft Employee
What's your problem now? Could you share the pbix with me? You can upload it to onedrive or dropbox and send me the link in private message. Do mask sensitive data before uploading.:smileyhappy:
Regards
- eduardo10 years agoAdvocate II
I wanna this:
I got this:
i think the problem will be solved with a new visual not in dataset.
I'll send my dataset and pbix in private message.
ty sir
eduardo
- eduardo9 years agoAdvocate II
I'm back :P
My last post with this issue.
Can anyone show me the way? the dataset is on dropbox https://www.dropbox.com/s/488pn5fsj08kjec/eduardo.zip?dl=0
thanks
eduardo