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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
J___M
New Member

Power Bi current month formula error

869EB1C0-253B-44AE-BE67-31B6CA69FC1F.jpeg

 my current formula is not picking up all the data it should be. Any advice?

1 ACCEPTED SOLUTION
SQL_SousChef
Frequent Visitor

Not sure what all the formula is not picking up. The MONTH() function take in a Date "2023-08-01" not just a number 08. I think just putting an Integer just returns a 1.

Example:

MonthMeasure =
VAR CurrentMonth = MONTH("2023-04-01")
Return CurrentMonth

This will return 4 if that is what is needed

View solution in original post

3 REPLIES 3
SQL_SousChef
Frequent Visitor

No problem, I am pretty new myself. Check out https://dax.guide/ they have great examples and help me when I feel like I am using a function incorrectly.

SQL_SousChef
Frequent Visitor

Not sure what all the formula is not picking up. The MONTH() function take in a Date "2023-08-01" not just a number 08. I think just putting an Integer just returns a 1.

Example:

MonthMeasure =
VAR CurrentMonth = MONTH("2023-04-01")
Return CurrentMonth

This will return 4 if that is what is needed

Thankyou so much! I'm a new user so still trying to get my head around the formulas

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.