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

Product sales to be multiplied by constant numbers

 

Dear all,

 

I have a daily sales table with products.

The product sales need to be multiplied with a constant number which is defined in a product master table.

 

The master product table is such that each product is given a unique number.

For eg : SKU 1 has a fixed number 2

So every time the sales for SKU 1 are shown we need to multiply its sales by 2.

 

How do i do this? Simple, multiplication does not work .

 

 

1 ACCEPTED SOLUTION
JosefPrakljacic
Solution Sage
Solution Sage

Hello @Anonymous, 

 

  1. Please make sure that your relationships are in place. (ProductMaster 1 : * Products)
  2. Create a calculated column and use the Related Function -> Related(ColumnFrom-ProductMaster) to get the Sku Info and then write your IF/Switch Condition.

Please provide us with some sample data if you need more help.

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

View solution in original post

3 REPLIES 3
JosefPrakljacic
Solution Sage
Solution Sage

Hello @Anonymous, 

 

  1. Please make sure that your relationships are in place. (ProductMaster 1 : * Products)
  2. Create a calculated column and use the Related Function -> Related(ColumnFrom-ProductMaster) to get the Sku Info and then write your IF/Switch Condition.

Please provide us with some sample data if you need more help.

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

Anonymous
Not applicable

Hi @JosefPrakljacic this is not working

since my sales table is at a lower level of product hierarchy than the product master table.

I have  multiple codes for the same product defined in my sales table

Anonymous
Not applicable

IT WORKED

THANKS....

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.