Forum Discussion

Taznalem's avatar
Taznalem
Frequent Visitor
7 years ago
Solved

How to create calculate spells ?

Hi everybody!   I am developing a PBI to have a tracking of trainings. I would like have a Card where show the maximum number of days of training non-stop. If we suppose one month   1. A Calendar...
  • v-jiascu-msft's avatar
    7 years ago

    Hi Taznalem,

     

    Please check out the demo in the attachment. The main steps are as follows.

    1. Create an index that can identify the continuous days. 

    How_to_create_calculate_spells

    2. Create a measure. 

    Measure =
    MAXX (
        SUMMARIZE (
            'Table1',
            'Table1'[Index],
            "non-stop", COUNT ( 'Table1'[Training] )
        ),
        [non-stop]
    )
    

    How_to_create_calculate_spells2

    Best Regards,
    Dale