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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tracytran91
Helper III
Helper III

Monthly performance of 80% Sale by product

Hi friends, 

 

I did a pareto chart which showed up SKU made up 80% Sales. The measure Cumulative SKU % worked well. 

 

Cumulative SKU % = 
var total =  CALCULATE ([Sales], ALL( D_product[code]))
var current1 = [Sales]
var summarizedTable=
 SUMMARIZE(ALLSELECTED(D_product),D_product[code] ,"NetSales1",[Sales])
var cummlativeSum = 
 SUMX(FILTER(summarizedTable,[NetSales1]>=current1),[NetSales1])
return cummlativeSum/total

 

Then now, I would like to have the column chart like this to show up monthly performance of 80% Sale by product. 

 

sale.png

 

I created the  measure Sales of 80% SKU. It took over 10 mins but it had not showed up the chart. 

 

Sales of 80% SKU = 
     CALCULATE(
         [Sales],
         FILTER(ALL(D_product),[Cumulative SKU %] <= 0.8))

 

Could anyone help me regarding this issue? 

Highly appreciated your help. 

 

 

 

1 ACCEPTED SOLUTION
tracytran91
Helper III
Helper III

I used this simple trick and worked. 

I put Product and Month in the shared Axis. Sale will be the values.

 

tracytran91_0-1631349074259.png

 

View solution in original post

3 REPLIES 3
tracytran91
Helper III
Helper III

I used this simple trick and worked. 

I put Product and Month in the shared Axis. Sale will be the values.

 

tracytran91_0-1631349074259.png

 

v-xulin-mstf
Community Support
Community Support

Hi @tracytran91

 

Without knowing the structure of your data, try measure as:

Sales of 80% SKU = 
Sumx(
     filter(
          ALL(D_product),
          month(D_product)=month(max(D_product))
          ),
     CALCULATE(
         [Sales],
         FILTER((D_product),[Cumulative SKU %] <= 0.8))
)

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.