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

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

Reply
ljimenezvega84
Frequent Visitor

Create a count of orders

Hi! hope you all are fine

I need to create a calculation who count the homes reached. In this case, i have 47 reached homes. I´ve try to resolved with count and distintcount formula and no one helps. 

ljimenezvega84_0-1653788014055.png

 

1 ACCEPTED SOLUTION

Hi, @ljimenezvega84 

 

You can try the following methods.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Calle] ),
    FILTER ( ALL ( 'Table' ), [Venta Total] > 0 )
)

vzhangti_0-1654048265917.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
ljimenezvega84
Frequent Visitor

Hi hnguy71,thanks for your response.

 

Im counting the reached homes with the total sales; if an adress_id have a sale, this is a reached home. But if i used count in the sales column the software give me the total sales (a home can have various sales).

 

Thanks

Hi, @ljimenezvega84 

 

You can try the following methods.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Calle] ),
    FILTER ( ALL ( 'Table' ), [Venta Total] > 0 )
)

vzhangti_0-1654048265917.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

Assuming Venta Total is a measure that you have written, drag this measure to a card visual

Measure = counrows(filter(values(Data[Calle]),[Venta Total]>0))


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

Hi @ljimenezvega84 ,

 

How can you determine when a homne has been reached? Do you perhaps have a small sample with expected output that you can share?



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.