cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

DAx Formula

Hello All,

 

Please help me with the below DAX formula

 

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.

image.pngimage.png

 

Please let me know if you need further details

REgards,

chandra

Varun

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: DAx Formula

Hi @chandra_0202 

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))

4.png

Best Regards

Maggie

View solution in original post

4 REPLIES 4
Super User
Super User

Re: DAx Formula

Hi @chandra_0202,

 

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] ) )
)

Capture.PNG

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.

Capture1.PNG

tangutoori Regular Visitor
Regular Visitor

Re: DAx Formula

group by cus count.PNG

rocky09 Senior Member
Senior Member

Re: DAx Formula

try this

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

Re: DAx Formula

Hi @chandra_0202 

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))

4.png

Best Regards

Maggie

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 472 members 4,617 guests
Please welcome our newest community members: