Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
HLVW
Helper I
Helper I

Show Actual for previous month and budget for future months

Hi.

 

Is it possible to create a visual showing actual figures for previous months and budget for future months? As a twist, Actual figures should only be used if the month is closed. So Actual April figures should not be used until May 1. Furthermore, I would like the visual to use different colours for the months depending on the category, Actual or Budget.

 

Pls. see below example:

HLVW_1-1712650221271.png

 

 

 

HLVW_0-1712650164495.png

 

Thanks a lot in advance.

 

1 ACCEPTED SOLUTION

Hi @HLVW ,

I have modified my sample, please refer to.

vrongtiepmsft_0-1712733544075.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

4 REPLIES 4
v-rongtiep-msft
Community Support
Community Support

Hi @HLVW ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

Create a column first.

forecast_col = var _1=MONTH(TODAY())
return
IF(('Table'[month])<=_1,('Table'[Actual]),('Table'[Budget]))

Then create a measure.

Measure = var _mon=MONTH(TODAY())
return
IF(MAX('Table'[month])<=_mon,"Blue","Green")

vrongtiepmsft_1-1712713620058.png
vrongtiepmsft_0-1712713594491.png

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

Hi @v-rongtiep-msft 

Thanks a lot for your reply. I have a minor problem with the month as I have more than one year in my table, so I assume I will have to consider this in my measure?

Hi @HLVW ,

I have modified my sample, please refer to.

vrongtiepmsft_0-1712733544075.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Hi @v-rongtiep-msft 

It works perfectly! Thanks a lot.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.