Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)
How can I display sales data by weeks,Calendar table and date hierarchy is listed as Year,Quater,Month and Day with no week,How can I display them??

1 Answer

0 votes
by (22.5k points)
edited by

 To get week in your calendar. use the following DAX equation which show the week number 

Week No = WEEKNUM(Table1[Date], 2)

Power BI Table showing week number

To get start of the week use

Start of Week = 'Calendar'[Date]  - WEEKDAY('Calendar'[Date],2) +1

Power Query Week Functions

Want to earn a certificate in Power BI? here is the Power BI Course that will make you industry ready.

Also, check out our YouTube video to know the data visualization basics and best practices with Power BI

Related questions

0 votes
1 answer
asked Jan 5, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
0 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...