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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Thulasiram
Helper II
Helper II

Blank values

Dear all,

I have a fact table with columns of products , customers and sales another table containing discount rates for each product.

Mostly one customer has only one product but in some cases more than 1 product.

I have a dim table containing customer names.

I want to bring in the product name against each customer through lookupvalue function.

Since some customers has more than 1 prouduct, the result show error.  I used IFERROR function

to show blanks in those cases where customer has more than 1 product.

I calculated discount amount by calculating sales from one table and discount rate from another table.

Since my dim table contains blank values for products against some customers, the rows contains

blank values but discount is properly calculated.

Is there any way I can bring in the product names?

Help is much appreciated.

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@Thulasiram Not sure I fully understand but try using MAXX(FILTER( ) ) instead of LOOKUPVALUE



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

mickey64
Super User
Super User

Step 1: I add a relationship between a fact table and another table. (Key column: 'product')

 

Step 2: I add a column to a fact table.

discount rates = RELATED(another table[discount rates])

View solution in original post

5 REPLIES 5
mickey64
Super User
Super User

Step 1: I add a relationship between a fact table and another table. (Key column: 'product')

 

Step 2: I add a column to a fact table.

discount rates = RELATED(another table[discount rates])

Thank you

Greg_Deckler
Super User
Super User

@Thulasiram Not sure I fully understand but try using MAXX(FILTER( ) ) instead of LOOKUPVALUE



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank, will try.

Hi,@Thulasiram 

 Has the problem been solved? If it does, share your solution and accept it as a solution that will help other community members who have the same problem as you.

Best Regards,

Leroy Lu

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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