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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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