Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello Team,
I have the below table:
| Client Code | PAX |
| 1010 | 2 |
| 2020 | 3 |
| 1010 | 2 |
| 1010 | 2 |
| 3030 | 4 |
I need your help with a DAX formula to calculate the Total Pax but it has to take into account the unique client code.
From the table: My result should be 9 PAX (1010 = 2 + 2020 = 3 and 3030 = 4)
Thank you for your help.
Kind Regards,
Hash
Solved! Go to Solution.
Hi @Hash2023 ,
Try the following code:
Total PAX = SUMX(SUMMARIZE(Table, Table[Client], Table[CodePAX]), Table[CodePAX])
I'm assuming based on your sample that the CodePAX is always the same for the sames client.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Hash2023 ,
Try the following code:
Total PAX = SUMX(SUMMARIZE(Table, Table[Client], Table[CodePAX]), Table[CodePAX])
I'm assuming based on your sample that the CodePAX is always the same for the sames client.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi Miguel,
Thank you for your help. It works.
Kind Regards,
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 64 | |
| 31 | |
| 26 | |
| 26 |