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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

We need to calculate the number of orders.

We need to calculate the number of orders.

Create

a calculated measure that uses the COUNTA(Order_ID) DAX formula?

OR

a calculated measure that uses the SUM (Order_ID) DAX formula?

OR

a calculated column that uses the SUM (Order_ID) DAX formula?

OR

a calculated column that uses the COUNTA (Order_ID) DAX formula?

 

which one is right?

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi buddy,

 

Try use a measure with:

DISTINCTCOUNT([NoORDER])

this would give you the number of distinct Nº of orders.

 

Any questions, ask 😉

View solution in original post

Hi,

The first one is correct.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi buddy,

 

Try use a measure with:

DISTINCTCOUNT([NoORDER])

this would give you the number of distinct Nº of orders.

 

Any questions, ask 😉

Anonymous
Not applicable


@Anonymous wrote:

Hi buddy,

 

Try use a measure with:

DISTINCTCOUNT([NoORDER])

this would give you the number of distinct Nº of orders.

 

Any questions, ask 😉


Thanks for answer. Can you explain which is correct from below 1 and 2?

 

1 a calculated measure that uses the COUNTA(Order_ID) DAX formula?

OR

2 a calculated measure that uses the SUM (Order_ID) DAX formula?

OR

a calculated column that uses the SUM (Order_ID) DAX formula?

OR

a calculated column that uses the COUNTA (Order_ID) DAX formula?

Hi,

The first one is correct.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

A simple 

Measure = DISTINCTCOUNT(order ID)  should do the trick.
 
Or you can just drag your column of ORDER ID directly into a visual and have it display the count or distinct count of the values.
 
cheers

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors