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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
toddpbi
Helper II
Helper II

Time Intelligence without Date Tables

Hello there everyone,

 

Currently I am trying to calculate a measure that displays total budget YTD.

 

However, my budget data is on a monthly granularity and I have used the following DateKeys with format (YYYYMM) within my date table to connect the budget data to the calendar dates table.

 

Is it possible to write a DAX formula to calculate budgets YTD without using the column that is formatted "dates" within my date table?

 

Currently, I am using the following DAX formula to calculate cumulative budgets YTD:

Cumulative Budgets YTD = IF( LASTDATE( 'Calendar Dates'[Date Format]) > TODAY(),
    BLANK(),
        CALCULATE( [Total Budgets],
            FILTER( ALLSELECTED( 'Calendar Dates' ),
                'Calendar Dates'[DateKey] <= MAX( 'Calendar Dates'[DateKey] ))))

 

When I try to display my "Budget Accounts" on the rows with Budgets YTD and Actuals YTD, the actuals appear but the budgets do not (ie I am getting blanks for all of my cumulative budget values). Any idea why this is happening? I have attached pictures of my model for your reference. I want to filter the budget accounts table to show YTD Actuals and YTD Budgets on the columns, however Budgets YTD continually shows the budget for the full 12 months instead of up to today. I have budget data for the entire year but I only want to compare it to the period in time of the current year. In addition, I am also getting a blank value, the reason I do not know why.

Any help to solve my issues would be appreciated a lot.

 

2018-03-15_12h01_18.png

2018-03-15_13h44_14.png

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @toddpbi,

 

I'm not so clear for your data and formula, can you please provide more detailed information about this?

For example: measure formulas, sample data, pbix file.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.