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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.