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
eduardosilvin3
Advocate I
Advocate I

Top Weeks in graph

Hello I am working with weeks, and I need that graph per week (Week Year for Grapgh in X axis) always shows the top 5 weeks (selected plus 4 previous weeks). If it is possible, when any filter is added or selected, shows the top 5 of the whole data (in that case of the example shows the first 5 weeks of that last year. (I covered the data in the graph due to privacy)

 

eduardosilvin3_0-1705539440266.png

 

1 ACCEPTED SOLUTION

See attached for one possible approach with disconnected tables.

lbendlin_0-1705678948690.png

 

Careful with CalendarAuto() - better to use fixed time ranges.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Hello I am working with weeks

Very sorry to hear that 🙂 

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Thank you for yoru response, sure here it is the sample data with the graph in the "PBI Help" file. I need that instead it shows all the weeks (the graph), only takes the selected week + the last 4 complete weeks... and if you select another week or several, the last one will be taken as that last one in the graph and shows the last 4 weeks before the selection in the weeks slicer.

 

 https://onedrive.live.com/?authkey=%21AG9u4wA9u0Qo4FM&id=324EF1095BD7B800%2111236&cid=324EF1095BD7B8... 

See attached for one possible approach with disconnected tables.

lbendlin_0-1705678948690.png

 

Careful with CalendarAuto() - better to use fixed time ranges.

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.