Forum Discussion
3 month rolling data visual
- 5 years ago
Hi, ArslanManzoor
Please check the below steps.
Write a measure something like below.
Conditional Format measure =SWITCH (TRUE (),[Time Taken Avg for Visualization]> 1.05 * SELECTEDVALUE ( Target[Target] ), 1,[Time Taken Avg for Visualization]<= 1.05 * SELECTEDVALUE ( Target[Target] )&& [Time Taken Avg for Visualization]>= 0.95 * SELECTEDVALUE ( Target[Target] ), 2,[Time Taken Avg for Visualization]< 0.95 * SELECTEDVALUE ( Target[Target] ), 3)Setup like below.Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi Jihwan_Kim ,
Thank you for your quick response!
I'm relatively new to Power BI so struggling to implement your DAX formula/axis table approach with my data. Is there a way I can combine the 2 files so I can just feed my data into your visual?
I also want to be able to conditionally format each 'cell' under the 'Current' column and each of the rolling month columns, so that the cell turns red if it's above 5% of the target, yellow if within 5% of target (above or below), and green if over 5% below target. Is this possible with the table you created?
Thanks again for your help!
Hi, ArslanManzoor
I am not sure how your real data model looks like, but in my opinion, if your table 1 and table 2 has the same table structure as above, then, you can open my pbix file and replace the data with yours. If the date range is larger, then you need to fix the calendar table and axis table to include your date range.
If it is OK with you, please share your table1 and table2, then I can try to look into it to come up with a more accurate solution.
Thank you.
- ArslanManzoor5 years agoFrequent Visitor
Thanks Jihwan_Kim , I have managed to get the table to work for my data.
Is there a solution for my conditional formatting question above I can use in this table?
- Jihwan_Kim5 years agoSuper User
Hi, ArslanManzoor
Please check the below steps.
Write a measure something like below.
Conditional Format measure =SWITCH (TRUE (),[Time Taken Avg for Visualization]> 1.05 * SELECTEDVALUE ( Target[Target] ), 1,[Time Taken Avg for Visualization]<= 1.05 * SELECTEDVALUE ( Target[Target] )&& [Time Taken Avg for Visualization]>= 0.95 * SELECTEDVALUE ( Target[Target] ), 2,[Time Taken Avg for Visualization]< 0.95 * SELECTEDVALUE ( Target[Target] ), 3)Setup like below.Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM