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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
YBZ
Helper III
Helper III

measure adjusting start date

Hi all,

 

I have a visual (if you can call it even a proper visual... :)) that looks as followed.

 

YBZ_0-1685008883874.png

 

 

The red line starts from the start date of the 'Calendar'. I would like to however let it automatically start from the period when there are actuals (for every project this is different), I am just not sure how to do that.
 
Total budget release = calculate(sum('LE 2022'[Budget release/LIP]),ALL('Calendar'))
 
Perhaps worth to share is :
actuals (yellow bars) are specifically linked in my date model to a month. While the total budget release (red line) is not linked to a month, but to a specific year.
 
Any idea on how make it a proper visual 🙂 ?
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Your budget measure should be:

Total budget release = if(isblank([Actuals]),blank(),sum('LE 2022'[Budget release/LIP]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Your budget measure should be:

Total budget release = if(isblank([Actuals]),blank(),sum('LE 2022'[Budget release/LIP]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yiruan-msft
Community Support
Community Support

Hi @YBZ ,

I'm not clear about your requirement. Do you want to show the red line start from the date which the yellow bar starts with the culmulative values? If yes, you can update the formula of measure [Total budget release] as below:

Total budget release =
VAR _mindate =
    MINX ( ALLSELECTED ( 'LE 2022' ), 'LE 2022'[Date] )
VAR _maxdate =
    MAXX ( ALLSELECTED ( 'LE 2022' ), 'LE 2022'[Date] )
VAR _seldate =
    SELECTEDVALUE ( 'Calendar'[Date] )
RETURN
    IF (
        _seldate >= _mindate
            && _seldate <= _maxdate,
        CALCULATE (
            SUM ( 'LE 2022'[Budget release/LIP] ),
            FILTER ( ALLSELECTED ( 'LE 2022' ), 'LE 2022'[Date] <= _seldate )
        ),
        BLANK ()
    )

If the above one can't help you, could you please provide some raw data in your table 'LE 2022' (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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