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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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