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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.