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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ROG
Responsive Resident
Responsive Resident

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?

ROG_0-1664891712744.png

Many thanks!

 

1 ACCEPTED SOLUTION
ROG
Responsive Resident
Responsive Resident

I used the dax below and it works. 

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

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @ROG 
Please try

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

ROG
Responsive Resident
Responsive Resident

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.

ROG
Responsive Resident
Responsive Resident

I used the dax below and it works. 

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

@ROG 

Please try

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors