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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
tl5970
Frequent Visitor

Measure Product Distribution

Hi all, could anyone help me to solve the below measure?

issue.png

total_sales_qty for each store must greate thn 0 thn count as 1.

Each Product's distribution will calculate base on the total store's sales qty that is more thn 0

What I get is in Red column. Kindly pls help. Thanks in advance

 

 

1 ACCEPTED SOLUTION

Hi @tl5970,

 

Please try the measure below.

 

Measure =
CALCULATE (
    COUNT ( 'table'[Store_No] ),
    FILTER ( 'table', CALCULATE ( SUM ( 'table'[Total_sales_qty] ) ) > 0 )
)

Here is the result output.

 

Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @tl5970,

 

I'm a little confused about your scenario.

 

If it is convenient, could you share some data sample as table and your desired output so that I can understand better and help further on it?

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-piga-msft,

 

Thanks for your reply. The desired output is "Distribution" header in 5th column. But the incorrect data I get was in column 6th.

Hi @tl5970,

 

Please try the measure below.

 

Measure =
CALCULATE (
    COUNT ( 'table'[Store_No] ),
    FILTER ( 'table', CALCULATE ( SUM ( 'table'[Total_sales_qty] ) ) > 0 )
)

Here is the result output.

 

Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tl5970
Frequent Visitor

Hi all, could anyone help me to solve the below measure?

issue.png

total_sales_qty for each store must greate thn 0 thn count as 1.

Each Product's distribution will calculate base on the total store's sales qty that is more thn 0

What I get is in Red column. Kindly pls help. Thanks in advance

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.