cancel
Showing results 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

Resolver III

## total by month showing wrong value.

Hey guys,

I have the table below with the closing base showing the correct value by day, but the total by month is wrong.

It's giving me the average, and for the business logic it should be giving me the last day amount which is 1,172,294.
So for each month the value should be the amount for the last day of the month.
What do I need to do to see the expected value?

Many thanks!

1 ACCEPTED SOLUTION
Resolver III

I used the dax below and it works.

Monthly Closing Month - 30D = CLOSINGBALANCEMONTH([Daily Closing Base - 30D], '🔎Calendar'[Date])
4 REPLIES 4
Super User

Hi @ROG

Closing Base 2 = SUMX ( VALUES ( 'Table'[Month Name Long] ), [Closing Base] )

Resolver III

Thansk @tamerj1  Unfortunately, it's giving me the exact amount I have.

What I need is a dax measure that shows the amount of last date of the month, and not the total for that month.
The result will say how much the business closed the month.

Resolver III

I used the dax below and it works.

Monthly Closing Month - 30D = CLOSINGBALANCEMONTH([Daily Closing Base - 30D], '🔎Calendar'[Date])
Super User

Closing Base 2 =
CALCULATE (
[Closing Base],
'Table'[Month Name Long] = MAX ( 'Table'[Month Name Long] )
)

Announcements

#### 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.

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

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

Top Solution Authors
Top Kudoed Authors