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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Measure showing current month and previous month percentage rate

 

Hi,

Does anyone know of a measure that could be used to determine the percentage rate for the current month and that of the previous month? Below is a table showing the figures I expect to see with the appropriate dax measure. I have also included the dax measure which sadly hasn't worked and a link to the pbix file.

 

Current & Previous month percentage rate by categoryCurrent & Previous month percentage rate by category

 

current month dax.JPG

 

<iframe src="https://onedrive.live.com/embed?cid=3AC7A918C5EB3011&resid=3AC7A918C5EB3011%21409&authk... 

 

 

Many thanks in advance for any help.

 

 

2 ACCEPTED SOLUTIONS

Hi @Anonymous 

 

There's no need for a "this month rate" measure.  When you use it in visuals, filter context will take care of calculating it for that month only.  LastMonthRate should be this:

 

LastMonth Rate = 
CALCULATE(
    [Rate],
    PREVIOUSMONTH(dim_date[day_date])
)

 

 

And here's the results

littlemojopuppy_0-1659477399587.png

Hope this helps!  🙂

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could create a measure.

LastMonth Rate2 = 
CALCULATE([Rate],FILTER(ALLSELECTED('Query2'),[Category]=MAX('Query2'[Category])&&EOMONTH([ActivityDate],0)=EOMONTH(MAX('Query2'[ActivityDate]),-1)))

The final show:

vyalanwumsft_1-1659578917524.png

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

View solution in original post

8 REPLIES 8
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could create a measure.

LastMonth Rate2 = 
CALCULATE([Rate],FILTER(ALLSELECTED('Query2'),[Category]=MAX('Query2'[Category])&&EOMONTH([ActivityDate],0)=EOMONTH(MAX('Query2'[ActivityDate]),-1)))

The final show:

vyalanwumsft_1-1659578917524.png

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

Anonymous
Not applicable

@v-yalanwu-msft 

Thank you so much and your suggestion worked as it relates to determining LastMonthRate. Could the measure be amended to calculate the CurrentMonthRate? Ideally, I need a measure for Current Month Rate as well. Many thanks for your help once again.

Anonymous
Not applicable

@v-yalanwu-msft 

I have just amended the measure you created for LastMonthRate and been able to create CurrentMonthRate successfully (see dax measure below and a table with the results I expected). Many thanks once again for your help with this.

CurrentMonthRateCurrentMonthRate

 

Expected ResultExpected Result

littlemojopuppy
Community Champion
Community Champion

Hi @Anonymous 

 

Do you have a date table and is it marked appropriately?  If so this would be very easy using Time Intelligence.  Current month would be however you are calculating it now.  Prior month would be 

CALCULATE(
    [Rate],
    PREVIOUSMONTH(DateTable[Date])
)

 

Hope this helps!

Anonymous
Not applicable

@littlemojopuppy 

I have got a date table and did create a measure similar to the one you proposed to determine previous month's percentage rate but it didn't work!

previous month.JPG

@Anonymous can you provide a sample pbix file?

Anonymous
Not applicable

Hi @Anonymous 

 

There's no need for a "this month rate" measure.  When you use it in visuals, filter context will take care of calculating it for that month only.  LastMonthRate should be this:

 

LastMonth Rate = 
CALCULATE(
    [Rate],
    PREVIOUSMONTH(dim_date[day_date])
)

 

 

And here's the results

littlemojopuppy_0-1659477399587.png

Hope this helps!  🙂

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.