Forum Discussion
SQL logic in DAX
- 5 years ago
Hi BishwaR ,
Just use Count() directly to create measure:
Count Suborders = COUNT('Table'[Suborder])Attached the sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Each Purchase Order has sub orders.
If PO 12 has three Suborders
PO 22 has one Suborder
PO 33 has four suborder
then I am trying to show in the report
PO 12 has 3 suborders
PO 22 has 1 suborders
PO 33 has 4 suborder
TOTAL suborders 8
Thank you
Hi BishwaR ,
Just use Count() directly to create measure:
Count Suborders = COUNT('Table'[Suborder])
Attached the sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.