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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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