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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Thiago_Agraria
New Member

Grafic every 10 days

I need to make a separate chart by date every 10 days. I've maded the formula to separate that, but i can't organize in cronological order.

 

that's the formula that i've maded:

Decendio =
VAR Dec = if(and(day(Calendario[Date]) >= 1 , day(Calendario[Date]) <= 10), 1,
    if(and(day(Calendario[Date]) >= 11 , day(Calendario[Date]) <= 20), 2,3))

RETURN
CONCATENATE(Dec&" ",FORMAT(Calendario[Date],"mmm-yy"))
 
that is in the calendar table
1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Thiago_Agraria ,

I created a sample pbix file(see the attachment), please find the details in the attachment.

vyiruanmsft_2-1688019315276.png

In addition, you can refer the following blog to achieve it.

Sort a Column with a Custom Order in Power BI

1. Create a customized sort order dimension table

Effet Order
INDICE 1 1
OLD 2
ITM 3
CONCU 4
QTE 5
NEW 6
INDICE 2 7

2. Combining the Sort Order Table with 'Dimension' table

vyiruanmsft_0-1688018777074.png

 

3. Sort by column

vyiruanmsft_1-1688018777404.png

 

If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Thiago_Agraria ,

I created a sample pbix file(see the attachment), please find the details in the attachment.

vyiruanmsft_2-1688019315276.png

In addition, you can refer the following blog to achieve it.

Sort a Column with a Custom Order in Power BI

1. Create a customized sort order dimension table

Effet Order
INDICE 1 1
OLD 2
ITM 3
CONCU 4
QTE 5
NEW 6
INDICE 2 7

2. Combining the Sort Order Table with 'Dimension' table

vyiruanmsft_0-1688018777074.png

 

3. Sort by column

vyiruanmsft_1-1688018777404.png

 

If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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