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
Anonymous
Not applicable

Measure sum

I want to creat a new Measure for a table which should show the total retention in the total row of the table. Can someone help me? 

dndrms2105_0-1595012832439.png

In this layout the new measure should be add next to retention and show the total retention that the customer has.

https://drive.google.com/file/d/1k10VsQ2r3H_-L-3T2k0An9NajyoS0V0z/view?usp=sharing

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could try the following measure:

Retention =
VAR a =
    IF (
        [Retention condition 1] >= 1
            || [Retention Condition 2] >= 1
            || [Retention Condition 3] >= 1,
        1,
        0
    )
VAR b =
    COUNTX ( VALUES ( dCalendar[YEAR] ), a )
RETURN
    IF ( ISINSCOPE ( dCalendar[YEAR] ), a, b )

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
mahoneypat
Employee
Employee

Please try this expression, substituting your actual table and column names

 

NewMeasure = SUMX(VALUES('Date'[Year]), [Retention])

 

This should give you the correct result in both your rows and total.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

I use this function

Retention Count = SUMX(VALUES('Purchases'[Customer]),[Retention])
and it worked but seems like it doesn't count all rentention.
As you can see year 2015 and 2016 there is retention but on retention count it doesn't.
Is there a way to fix?
Untitled.jpg

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.