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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Need a help in creating a measure.

Dear Experts

 

I want to achieve the below result in my measures-1 which should only populate the value corresponding to product is "ABC".

Can someone please let me know what is the formula for this please.

 

P.S: The product field is coming from a table called product_master and price-1 is a formula which sum up 2 different key figures.

 

measures.JPG

 

Thanks
Mahad

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Assuming Price-1 is a measure, write this measure

Measure-1 = if(max(Product_master[Product])="ABC",[Price-1],blank())

Hope this helps.


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

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Assuming Price-1 is a measure, write this measure

Measure-1 = if(max(Product_master[Product])="ABC",[Price-1],blank())

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Seanan
Solution Supplier
Solution Supplier

Hi @Anonymous 

 

You can create 2 custom columns to achieve this.

 

Please find the example below:

 

ABC = IF('Sheet1'[CustomA] = "ABC",'Sheet1'[Column1])
DEF = IF('Sheet1'[CustomA] = "DEF",'Sheet1'[CustomB])

 

 NVIDIA_Share_sh3LdbQPe9.png

 

 

 

 

If this solves your problem, please accept it as the solution.

Kind regards,

Seanan

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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