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
Anonymous
Not applicable

DAX - Product wise summarize sales

Hi every one,

 

I have data product wise sales for current year and & last year. 

 

i need to sum brand wise. when business "Yes". 

 

for example:

i have product like this.....

Hide & Seek Choco Chips
Hide & Seek Milano
Hide & Seek Bourbon
Hide & Seek Fab

 

When i going to sum it should be shown like "Hide & Seek",. output should come like below table...

 

ProductSales
Nimkin559007797
Krackjack818483490
20-20 Cookies564120046
Monaco-Salted Craker535219573
Golden Arcs739706682
Kreams690026141
Festo531514708
Hide & See2510424292
Happy Happy593745329
Parle969647073
Magix604267543
Coconut Cookies564142574
Milk Shakti573188335

 

 

Please find data in this link.

 

Thanks in advance....

 

Regards

Venu....

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

You may add a calculated column like below.

Column = 
IF (
    SEARCH ( "Hide & Seek", 'Product Wise Sales'[Product], 1, 0 ) > 0,
    "Hide & See",
    IF (
        SEARCH ( "Parle", 'Product Wise Sales'[Product], 1, 0 ) > 0,
        "Parle",
        'Product Wise Sales'[Product]
    )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
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

5 REPLIES 5
Anonymous
Not applicable

can any body help on this.......

Hi @Anonymous 

 

You may create a measue like below:

Measure = CALCULATE(SUM('Product Wise Sales'[Sales]),FILTER('Product Wise Sales','Product Wise Sales'[Business]="Yes"))

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@Anonymous

 

Thanks for your response....

 

the sample output has given in  the above.  "Hide & Seek" & "Parle" should summaraize and proivde aggregate Sasles values.

 

Product-Sales.jpg

 

these two brands should summaraize. can you help on this...

 

Hi @Anonymous 

 

You may add a calculated column like below.

Column = 
IF (
    SEARCH ( "Hide & Seek", 'Product Wise Sales'[Product], 1, 0 ) > 0,
    "Hide & See",
    IF (
        SEARCH ( "Parle", 'Product Wise Sales'[Product], 1, 0 ) > 0,
        "Parle",
        'Product Wise Sales'[Product]
    )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-cherch-msftThanks for your solution....

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.