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

help with arranging trading weeks continuously instead of categorically

does anyone know how to make a bar chart run from week 36 to week 2, without week 1 and 2 going behind  weeks 36-52?

 

I need the data to be continuous and not do this as i only have 20 weeks of data and need to lookly at weekly volumes

 

like in the below chart

 

Thanks,pwer.jpg

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@cmckernan93 you have to use sort by column to sort this column so that it is in the correct order. Check sort by column documentation here 

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @cmckernan93 ,

 

According to my understanding, since there is no data between the 3rd week and the 50th week, for the sake of beauty, you want to arrange the 1st &2rd weeks after the 50th week on the X-axis,right?

 

You could use the following formula to add a Rank column and apply it to Tooltip pane ,then set the X-axis type as Categorical and sort the visual by Rank ascending:

Rank =
IF (
    [Value] <> 0,
    RANKX (
        SUMMARIZE (
            FILTER ( 'Date', 'Date'[Value] <> 0 ),
            [Date],
            'Date'[Week],
            [Value]
        ),
        [Week],
        ,
        DESC,
        DENSE
    ),
    0
)

1.20.1.3.gif

 

Please take a look at the pbix file here.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-eqin-msft thanks, yes it has to look like that to allow continuous analysis

 

i have added a rank column to my data like below, 

cmckernan93_0-1611133014744.png

but when i added the rank to the tooltips area it was right only weeks 39,42 and 43 where in the wrong ara and bunched together, all other weeks were correct

cmckernan93_1-1611133129493.png

 

cmckernan93
Frequent Visitor

@parry2k Thanks for this

 

sorry i'm still only learning this software, i didn't see these options in my system and could only get the graphs to change according to the volume in the bars when i did get it to change. 

 

Do i have to change the data in my excel source or can i specify that i want January/week 1 and 2 to be after week 52 in this data some way?

 

Help.jpghelp 2.jpg

 

parry2k
Super User
Super User

@cmckernan93 you have to use sort by column to sort this column so that it is in the correct order. Check sort by column documentation here 

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.