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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

DAX Issue

Hi Everyone

        Am having user wise so many brand are there in inside table . so my requirement is user wise how many transaction done it . i want total transaction(Measure). am struggled on dax side. please sort me out 


Muthuvel_s_0-1615223919650.png

Output 


Muthuvel_s_1-1615223974304.png

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

Try these measures:

BrandTxn = COUNT('Table'[Brand Name])
Total TXN =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[TXN ID] ),
    ALLEXCEPT ( 'Table', 'Table'[User ID] )
)

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

@Anonymous 

Try these measures:

BrandTxn = COUNT('Table'[Brand Name])
Total TXN =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[TXN ID] ),
    ALLEXCEPT ( 'Table', 'Table'[User ID] )
)

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi @PaulDBrown 

             Its working but some filters also not applied. i want when i click on that single brand name its showing only that brand name and total txn count.
But you given that measure its shwoing all userid and all values 

Muthuvel_s_0-1615262728609.png

 




@Anonymous 

Do you have the interactions enabled between the slicer and the table?

Interactions.JPGCount Values.gif





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi PaulDBrown 
   
   Its working fine and when we are using the date filter range is not applicable on that total transaction count. how to make on that dax on date wise it's showing total transaction count. Interaction also fine.. so please sort me out. 

Muthuvel_s_0-1615531398726.png

 

@Anonymous 

Please post an image of the model.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi 
  Am not use any interactions. when am use these measures am getting full data that date filter also not working so we are getting some mismatch data. please sort me out. i want output is 20 

Muthuvel_s_0-1615301596776.png

 

Muthuvel_s_1-1615301670704.png

 

 

@Anonymous 

For slicers to work, you have to enable interactions between the slicer and the visual(s).

Interactions.JPG

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi 
   Am also tried your measure, but am not getting total value. please sort me out

 

Muthuvel_s_0-1615464449084.png

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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