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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

X-axis show day 31 on the graph each month

On the dashboard page, we have year (2023) and month (Nov) filters, and the graph was changed as per the filters.

 

For example, on the x-axis, when we selected Nov, it showed 30th day instead of 31st and all previous months were restricted to 30th day in the graph. This means that 30th Nov, 30th Oct and 30th Sep

 

But when we selected Oct, It showed 31st day, and the graph will produce 31st Oct, 30th Sep, and 31st Aug.

 

Technically, it is correct, but i want to show 31st day in Nov on the x-axis and all monthsRe, and the graph values will show on 30th Nov, 31st Oct and 30th Sep. Are there any possibilities in DAX?Capturedata2.PNGCaptureData3.PNGCaptureData1.PNG

1 ACCEPTED SOLUTION

That requirement results in a lot of extra setup.  Not sure this is maintainable.  But here goes

 

lbendlin_0-1700763880816.png

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Anonymous
Not applicable

 

Datasets:

 

Date12345678910111213141516171819202122232425262728293031
Jan278179144368218364205481284334163463304186385176497492470326228458123264368493331284258480307
Feb343178294428268350221186199293359144200400406463387227468176261333182379266490175177   
Mar465253345398126498309301196331387349129127295103362414104206429195232303326483244148174462499
Apr166156494106210382120485101326440341194255290325363391216152214447121176229308405212498397 
May369208406446197251255183103316164430499405231306448138463394333186303260378228499431224413324
Jun108286346106166191274286120461416144465476332324253126137208200443489142231365244484106276 
Jul323268175490224396351312395446372419402371123383243319256481245335367301328381327406450408131
Aug230319425437142213427349350426429179433209432456298114137189259485406179414250262391495482135
Sep151257342317129295352482290406118143150479436118184215189212376130175200413181444263190375 
Oct342494427429325188306223356383193211118222231301481431396192327309154375404406263364231385480
Nov106142310193175311220253374486209389240236356130155160392310497332246349171345469240286403 

 

Measure:

'Mbal = calculate([TBal], LASTNONBLANK('Calendar'[Date],[TBal]))

Oct Formula = calculate([MBal], DATEADD('Calendar'[Date],-1,MONTH))

'Sep formula= calculate([MBal], DATEADD('Calendar'[Date],-2,MONTH))

 

Showing Display:

Capturedata2.PNG

 

 

Should be Display:

CaptureData3.PNG

 

 

 

That requirement results in a lot of extra setup.  Not sure this is maintainable.  But here goes

 

lbendlin_0-1700763880816.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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