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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lsfloyd8
New Member

Time Intelligence without Date Table

Hello! I need to calculate prior month and year over year variances. My data model (I have access to Report Builder, not the underlying data) has a field for month and a field for year. Both have the sigma sign next to them and I seem to be unable to use those fields as they are in quick measures.

How can I create the measures I need for prior month and year over year variances? 

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

 

I use EOMONTH DAX function, and the description of the dax function's link is down below.

 

EOMONTH function (DAX) - DAX | Microsoft Learn

 

Jihwan_Kim_0-1699897834427.png

 

Prev month sales measure: = 
VAR _previousmonthenddate =
    EOMONTH ( MAX ( Sales[Date] ), -1 )
RETURN
    SUMX (
        FILTER (
            ADDCOLUMNS ( ALL ( Sales ), "@monthenddate", EOMONTH ( Sales[Date], 0 ) ),
            [@monthenddate] = _previousmonthenddate
        ),
        Sales[Sales]
    )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.