Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Validating Pizza IDs Against Pizza Names in Dataset
Hello everyone,
I’m working with a dataset where I need to ensure that the Pizza ID corresponds correctly to the Pizza Name. Specifically, I have multiple entries for the same pizza type with different IDs.
For example, the Pizza IDs for "The Barbecue Chicken Pizza" are:
I want to check whether these IDs are correctly associated with the Pizza Name "The Barbecue Chicken Pizza."
Could anyone suggest an efficient way to validate this within my dataset?
Here's the file, Pizza sales
Solved! Go to Solution.
Hi @gsk96 ,
Does your company's ERP system have a product data table (dimension table) that is normalized, so the pizza size is not included with each product entry? Or is the pizza size part of the product code? Since your pizza sales table is a fact table, you only need the Pizza ID in it. I recommend taking the pizza names from the product table, using the Pizza ID as a lookup key.
Best regards,
Hi @powerbiexpert22 and @DataNinja777 I have sucessfully solved it and it is working right.
Here's how I did it
Hi @gsk96 ,
Does your company's ERP system have a product data table (dimension table) that is normalized, so the pizza size is not included with each product entry? Or is the pizza size part of the product code? Since your pizza sales table is a fact table, you only need the Pizza ID in it. I recommend taking the pizza names from the product table, using the Pizza ID as a lookup key.
Best regards,
Hi @gsk96 ,
you can create calculated column in power bi similar to shown below and filter your results to "True". please see below file for your reference
https://drive.google.com/file/d/1wpnoW7LMQdKMsqe9fvpU7mTbyaNNHSEP/view?usp=drive_link
Hi @powerbiexpert22 It is a tedious job as there are 32 pizza names and 96 pizza ids
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |