Forum Discussion

Thiago_Agraria's avatar
Thiago_Agraria
New Member
3 years ago
Solved

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
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Thiago_Agraria ,

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

    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

     

    3. Sort by column

     

    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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Thiago_Agraria ,

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

    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

     

    3. Sort by column

     

    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