cancel
Showing results for
Did you mean:
Member

## DAx Formula

Hello All,

Target:

1. Need the client Distinct Client count. Example: A,B,C...

2. For cleints like "A" it should count the figures mentioned in column Bundle from the data format below.

Please let me know if you need further details

REgards,

chandra

Varun

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: DAx Formula

Is this problem sloved?

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

Based on your requirements, you could create two measures

```sum = CALCULATE(SUM(Table1[Bundle]),ALLEXCEPT(Table1,Table1[Client]))

discount = CALCULATE(DISTINCTCOUNT(Table1[Client]),ALL(Table1))```

Best Regards

Maggie

4 REPLIES 4
Super User II

## Re: DAx Formula

there are many options depending on what exactly you expect.

If you need a DAX expression for creating a new table which result is a sum of bundle over client, use GROUPBY:

```GroupedTable =
GROUPBY (
Table1;
Table1[Client];
"Sum Of Bundle"; SUMX ( CURRENTGROUP (); IF ( ISBLANK ( Table1[Bundle] ); 0; Table1[Bundle] ) )
)```

If you don't care that B, C, D, and E aren't a part of the result because they are BLANK, use the default summarization of Power BI, see screenshot below.

Regular Visitor

Senior Member

## Re: DAx Formula

try this

`Table = SUMMARIZE(Table1,Table1[Client],"Total Bundle",SUM(Table1[Bundle]))`
Community Support Team

## Re: DAx Formula

Is this problem sloved?

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

Based on your requirements, you could create two measures

```sum = CALCULATE(SUM(Table1[Bundle]),ALLEXCEPT(Table1,Table1[Client]))

discount = CALCULATE(DISTINCTCOUNT(Table1[Client]),ALL(Table1))```

Best Regards

Maggie

Announcements

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors