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
hide
Frequent Visitor

How to use date-based measures as axes in a chart to work with other filters.

 

Please support the files linked below.

sample_weeknum.pbix

 

The date specified in the slicer is used to control the table on the left.

We have created a measure that numbers every 7 days from the start date.

I want to use this "wk_no" as the X axis of the chart and Sales on the Y axis to create a sales graph.pict3.png

How can I make "wk_no" a column and use it for the X axis of the chart, so that it works together when the date of the slicer is adjusted?

3 REPLIES 3
hide
Frequent Visitor

Is there any other way to achieve this?

Power BI, too hard. (T_T)

amitchandak
Super User
Super User

@hide , You should create this as column in Date table

 

examples

 

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e...

 


To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Thank you very much!

I'm sorry, the following is difficult and I can't keep up with the understanding.

Can it be achieved without "Power query"?

Is it possible to use the value allocated every 7 days as a dimension?

(Isn't it possible to change dynamically with DAX?) )

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.