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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.