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
edersonsousa
New Member

Cumulative measure with group by

Hi dears,

I'm trying solve a problem with a measure I create to generate a total register by user and month/year and create a burndow graph.

 

edersonsousa_0-1662736106144.png

So, in month like june 2022, when I don't have any register of my users, the cumulative measeure return a 0 values instead return the last value.
Below I sent the measure:

 

_TotalParcialReunioes =
   COUNTROWS( FILTER(
            GROUPBY(
                CALCULATETABLE(
                'DadosReuniões',
                FILTER(ALLSELECTED('DadosReuniões'),'DadosReuniões'[MesAno] <= MAX('DadosReuniões'[MesAno]) && 'DadosReuniões'[Encontro realizado] = TRUE())),
                'DadosReuniões'[Nome Funcionário],
                "QTDE_REUNIOES",
                COUNTX(CURRENTGROUP(),'DadosReuniões'[Nome Funcionário])
            ),
            [QTDE_REUNIOES] >=1
    ))+0

 

 

How can I reapeat the last value, when the month no has any data?

 

Thanks

 

2 REPLIES 2
amitchandak
Super User
Super User

@edersonsousa , We usually user these type of formula

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

And on axis we use date/period from date table

OK. But in my case I need to group by user and check if user has 1 or more lines... in this case I can´t use sum

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.

Top Solution Authors