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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Use only full weeks in DAX

Hello peeps,

 

I have a quick problem. I have an external dateTable which I build for referencing.

Now I want to display data in line charts. By weeks, which looks like this:

 

grafik.png

 

I want the first and last week (in this case) to disappear. Simply, because there are not "full" weeks.

Since it is an "self-build" dateTable, I didn't find a workaround. In M this would be possbible, in DAX I dont know how.

 

All the best,

Julius

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

You could try to change start and end of X axis in Format field. In this way, you don't need to create a formula.  Values will be shown as what you set.

5.PNG

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Kudos are nice too.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hey Xue,

 

apparently it's not dynamic anymore then. Therefore as soon as week 42 is over and week 43 is ongoing, this line chart becomes useless or has to be adjusted manually..

Anonymous
Not applicable

Maybe there is a way to NOT show the last few days if the week in it is not full?

I hope I am not overcomplicating this matter..

 

@v-xuding-msft 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.