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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MatiasDamian
Frequent Visitor

MAX VALUE vs END OF MONTH VALUE (for each month) group bar chart, based on a MEASURE

Hi guys! I've posted another question without registrating and cant find it so here I go again.

I have 2 tables, 1 with my Dates calendar and 2 with my data (including my MEASURE which accumulate certaing Sum).

I need to create something like this chart (which compares MAX value VS END OF MONTH value, for each month): 
https://i.stack.imgur.com/kP2cH.png (I leave the link because this wont let me post the image, sorry!)


And it it would be a table I imagine it like this:

DATE   -MEASURE   -MAX MONTH MEASURE   -END OF MONTH MEASURE
01/01/2021500060005300
02/01/2021550060005300
03/01/2021600060005300
n…   
31/01/2021530060005300
01/02/2021570068006100
02/02/2021620068006100
03/02/2021680068006100
28/02/2021610068006100
01/03/2021420090009000
02/03/2021490090009000
03/03/2021780090009000
31/03/2021900090009000

 

 

I've tried a lot of things but couldnt reach it. Would you please help?

Thanks and regards!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MatiasDamian , Try measures like

 

Max = CALCULATE(maxx(values('Date'[Date]),[MEASURE]),DATESMTD(ENDOFMONTH('Date'[Date])))


Last value = CLOSINGBALANCEMONTH([MEASURE],'Date'[Date])

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur  thanks a lot but since its a company server and workbooks are restricted for internal employees, I dont know how to publish in order you to see it. Could you please guide me if there's some kind of "packaged" workbook like in Tableau?

Thanks again!

amitchandak
Super User
Super User

@MatiasDamian , Try measures like

 

Max = CALCULATE(maxx(values('Date'[Date]),[MEASURE]),DATESMTD(ENDOFMONTH('Date'[Date])))


Last value = CLOSINGBALANCEMONTH([MEASURE],'Date'[Date])

Hi @amitchandak , you're awesome dude! This solves my question, the only matter is that it messes with my original measure which accumulates some IN-OUT differences and now its displaying non-sense. But anyway, your answer was the solution, I'll have to work with different ways to develop my measure.

Thanks a lot!!!

Matias 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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