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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sandeep13
Helper III
Helper III

Create line chart day wise based on latest month date

Hi All,

 

Create line chart daywise based on latest month. once month over it should auto change to latest month
currently manully I have to change celmonth slicer value based on latest month and year

I want when july month over my trend line start from aug based on whatever day dates is present in the month of aug

Expecting output like below but dynmically😊 

 

Sandeep13_1-1692351589718.png

Below is sample dataset for your reference

INSERT_DTTOTAL_COUNT
6/24/2023200
6/25/2023323
6/26/2023320
6/27/202310
6/28/202330
6/29/202340
6/30/202350
7/1/20231
7/2/20233
7/3/20231
7/4/20232
7/5/20231
7/6/20232
7/7/20237
7/8/20231
7/9/20231
7/10/20231
7/11/20231
7/12/20233
7/13/20231
7/14/2023149
7/15/202325
7/16/202382
7/17/202317
7/18/2023253
7/19/202348
7/20/2023250
7/21/202339
7/22/2023252
7/23/202347
7/24/2023187
7/25/202333
7/26/2023178
7/27/202342
7/28/2023160
7/29/202333
7/30/202387
7/31/202311

Thanks in adavance

Feel free incase of any doubt

 

Looking for your reply 

 

@GPower @ypower @pbiexpert @Bex @communi @amitchandak

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sandeep13 ,

Please try to create a measure with below dax formula:

Measure =
VAR max_date =
    MAXX ( ALL ( 'Table' ), [INSERT_DT] )
VAR cur_date =
    SELECTEDVALUE ( 'Table'[INSERT_DT] )
VAR _diff =
    DATEDIFF ( cur_date, max_date, MONTH )
RETURN
    IF ( _diff = 0, 1 )

 Add the measure to the visual filter pane and set:

vbinbinyumsft_0-1692586828924.png

vbinbinyumsft_1-1692586845670.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Sandeep13 ,

Please try to create a measure with below dax formula:

Measure =
VAR max_date =
    MAXX ( ALL ( 'Table' ), [INSERT_DT] )
VAR cur_date =
    SELECTEDVALUE ( 'Table'[INSERT_DT] )
VAR _diff =
    DATEDIFF ( cur_date, max_date, MONTH )
RETURN
    IF ( _diff = 0, 1 )

 Add the measure to the visual filter pane and set:

vbinbinyumsft_0-1692586828924.png

vbinbinyumsft_1-1692586845670.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.