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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors