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
bihumano
Frequent Visitor

Cumulative sum not showing for some columns and showing for others columns

 

Hello everyone!

 

Screen Shot 2018-10-20 at 15.59.17.jpg

As seen above, the cumulative sum is not showing for these 2 columns...

I'm getting crazy trying to find out what's wrong...

The formula is taken from Mr Marco Russo...

Please, help me!!

Thank you

5 REPLIES 5
bihumano
Frequent Visitor

the final solution I used:

 

Realizado Acumulado = 
IF(
    MIN( Dates[Date] )  <= CALCULATE( MAX( Empreendimento[FimSafra] ); ALLSELECTED( Empreendimento ) );
        CALCULATE (
            SUM(Realizado[Valor]);
            FILTER(ALL(Dates);
                Dates[Date]<=MAX(Dates[Date])
            )
        )
)

thank you all!

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bihumano,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share some data sample which could reproduce your scenario and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MFelix
Super User
Super User

Hi @bihumano,

 

Why are you using the IF statement? 

 

You should try to use only the second part of your formula without the IF.

 

Regards,

MFelix

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix,

As you can see, the result is the same for the following formula

Realizado Acumulado = 
CALCULATE (
    SUM ( vwConsolidado[ValorRealizado] );
    FILTER (
        ALL (Dates );
       Dates[Date] <= MAX ( Dates[Date] )
    )
)

Screen Shot 2018-10-20 at 17.38.24.jpg

Hi @bihumano,

 

Try to use the following formula:

 

Realizado Acumulado = 
CALCULATE (
    SUM ( vwConsolidado[ValorRealizado] );
    FILTER (
        ALL (vwConsolidado[Data] );
       vwConsolidado[Data] <= MAX ( Dates[Date] )
    )
)

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.