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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
gladies123
Helper I
Helper I

Reg: Need to display only next month dates from date field

Hi,

 

i have contract end date field this field contains dates from (1-01-2018 to 31-12-2022).  Need a help to fnd a dax which gives next month date range that is April (01-04-2021 to 30-04-2021) then if the month of May starts automatically it has to display (01-05-2021 to 31-05-2021) likewise it has to display next month . kindly help me to find out the dax.

 

Regards,

Gladis

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @gladies123 

As mentioned by @ryan_mayu , you can create another calendar table.

You can also drag the date field to  visual filter pane to filter the date (make sure the type of  the field is 'Date').

P.S.  select ’calenadr month‘ rather than ’month‘ to filter the data

51.png

 

Best Regards,
Community Support Team _ Eason
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

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi, @gladies123 

As mentioned by @ryan_mayu , you can create another calendar table.

You can also drag the date field to  visual filter pane to filter the date (make sure the type of  the field is 'Date').

P.S.  select ’calenadr month‘ rather than ’month‘ to filter the data

51.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi, @gladies123 

Please try to create a measure like below, and add it into the table visualization with your date-column.

 

your measure =
VAR _currentmonth = max( your datetable month number column)

RETURN

calculate (your main measure, filter (all (date), month number column = _currentmonth -1))

if it is OK with you, please share your sample pbix file link here, then I can try to come up with more accurate measure.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


jdbuchanan71
Super User
Super User

Next Month Range = 
VAR _Start = EOMONTH(TODAY(),0)+1
VAR _End = EOMONTH(_Start,0)
RETURN _Start & " - " & _End

jdbuchanan71_0-1617079124088.png

 

Hi @jdbuchanan71 ,

 

it should not display like 1-04-2021 to 30-04-2021 and i have attched an image it has to display like as in image. help me to find out the DAX.Date_issue.PNG

 

@gladies123 

You can try to create a new table

Table = CALENDAR(EOMONTH(today(),0)+1,EOMONTH(today(),1))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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