cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors