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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dataPhix
Frequent Visitor

Need help understanding why measure isn't working.

Hi all,

 

A very newbie question here, but I'm hoping you kind folks can help.  I'm currently using the AdventureWorks 2017 data warehouse data to learn some PowerBI and have run into a bit of a snag.

 

I am only using two tables at the moment: DimDate and FactInternetSales.  DimDate looks something like:

dataPhix_0-1632178849184.png

 

And also has a "FiscalYear" field which is simply an integer of the year in consideration (i.e., 2008, 2009, 2010,...).  Meanwhile, FactInternetSales contains fields for SalesAmount, TotalProductCost, and TaxAmt.  I have computed a calculated column named Profit computed as:

 

dataPhix_1-1632179039914.png

 

Furthermore, the DimDate and FactInternetSales tables are in a 1-to-many relationship based on a common DateKey found in both tables.  The 1 side of the relationship is on the dimension table whereas the many side is on the fact table.  

 

Now for the issue.

 

I am attempting to create a "Profit Margin Ratio by FiscalYear" column chart where:

 

dataPhix_2-1632179264685.png

 

dataPhix_3-1632179279728.png

 

dataPhix_4-1632179292288.png

 

However...nothing displays. It's simply a blank chart:

 

dataPhix_5-1632179373911.png

 

Additionally, when I tried to create a table to help myself troubleshoot, I select "Don't Summarize" for the FiscalYear field in order to get each year on a new row:

dataPhix_6-1632179545515.png

However...as soon as I drag "Profit Margin Ratio" into the table, this is the result:

dataPhix_7-1632179592905.png

 

Does anyone know what the issue is?  I'm going nute over here trying to figure it out!

 

Thanks to all in advance!

 

 

1 ACCEPTED SOLUTION
halfglassdarkly
Responsive Resident
Responsive Resident

Hi @dataPhix which date column are you using? If you're using DateKey have you checked it's definately the same data type in both tables? If one is a date in yyyymmdd format and the other is being interpreted as text or a number that would explain your problem - PBI will still let you create a relationship in your table schema, but the values wouldn't match.

View solution in original post

2 REPLIES 2
halfglassdarkly
Responsive Resident
Responsive Resident

Hi @dataPhix which date column are you using? If you're using DateKey have you checked it's definately the same data type in both tables? If one is a date in yyyymmdd format and the other is being interpreted as text or a number that would explain your problem - PBI will still let you create a relationship in your table schema, but the values wouldn't match.

@halfglassdarklyyou have my thanks!

 

It turns out I had related the "DateKey" from DimDate to "OrderDate" in FactInternetSales when it should have instead been related to "OrderDateKey."  As you had expected, "DateKey" and "OrderDate" do not share the same data format and this was the root of the problem.

 

You're the best!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors