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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.