Forum Discussion
Formatting Future Values in Matrix Visual Dynamically
- Anonymous1 year ago
Hi ArchStanton ,
Please create a new measure and use it as the conditional format for both fields:
Measure = VAR __pre_month = EOMONTH(TODAY(),-2) + 1 VAR __cur_month = MIN(Modelling[Month]) VAR __pre_month_original_forecast = CALCULATE([Original Forecast],'Modelling'[Month]=__pre_month) VAR __pre_month_diff = CALCULATE([% Difference],'Modelling'[Month]=__pre_month) VAR __formmat = IF( __cur_month > __pre_month && [Actual incl Projected] > __pre_month_original_forecast && __pre_month_diff <= 1, "Red") RETURN __formmatBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- 1 year ago
Many thanks, this works perfectly! 😊
Hi ArchStanton ,
Please create a new measure and use it as the conditional format for both fields:
Measure =
VAR __pre_month = EOMONTH(TODAY(),-2) + 1
VAR __cur_month = MIN(Modelling[Month])
VAR __pre_month_original_forecast = CALCULATE([Original Forecast],'Modelling'[Month]=__pre_month)
VAR __pre_month_diff = CALCULATE([% Difference],'Modelling'[Month]=__pre_month)
VAR __formmat = IF( __cur_month > __pre_month && [Actual incl Projected] > __pre_month_original_forecast && __pre_month_diff <= 1, "Red")
RETURN
__formmat
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Many thanks, this works perfectly! 😊