Forum Discussion
How to show comparing date in bar chart?
- 6 years ago
I would look through appSource visuals to see if something there meets your needs. Alternatively, you can trick an array into doing this by making a date table (unrelated to the data), a measure that compares the date with the completed/expected dates, and the conditional formatting in the background and font. See the following example, using the week column of a date table (you could use date, month, and so on) to get the result. It also uses the Show in Rows function of the array visual.
The measures used above are (replace BarChart with the actual name of the table)
Esperado. • var mindate - MIN('Date'[Date])return if(mindate<-MIN(BarChart[Expected]),1)Completado. • var mindate - MIN('Date'[Date])return if(mindate<-MIN(BarChart[Completed]),1)If this works for you, mark it as the solution. Praise is also appreciated. Please let me know if you don't.
Best regards
Pat
wfeng , refer if this can help
Thanks for your advice! And you really did a good job, but I think they are not the same thing.
- Anonymous6 years agoNot applicable
Hi wfeng ,
I just created a sample pbix file for you, please check whether it is what you want.
Best Regards
Rena
- wfeng6 years agoRegular Visitor
Hi Rena,
Thank you for creating a sample report for me!
Your Gantt is interesting, and I think it could be helpful. Initially, I want a chart as your bar chart, but I met the same issue, the x-axis is always counted by power bi. I just want the date is shown on the x-axis, for example, 1/1/2020, 2/1/2020, and so on. Do you have any idea?
By the way, your data structure is different from mine. That's a running data set with huge volume, and updated every week. It could be terrible if it needs to change the data structure every time.
Please let me know if you figure out how to show date time on x-axis, I will very much appreciate it. Thanks again!
Best regards,
Weicong
- Anonymous6 years agoNot applicable
Hi wfeng ,
Sorry I haven't been able to find other suitable way to present your desired result except the previous method (change the table structure)...
parry2k , mahoneypat , Could you please help check this? You may have different idea on it... Thank you in advance.
Best Regards
Rena