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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Tooks9597
New Member

Actual vs Target Modeling Issue

Hello,

 

I'm trying to build a visual which shows me my Actual vs Target. I need this broken down for all of our store locations. I created the Data Model, but for some reason, the visual shows the same value for either my Actual or my Target. And when I attempt to use my Location field in my DimLocation, the visual breaks.

 

Visual.png

 

Right now, my target is showing correctly, but my Amount Actual is displaying the same thing for each store location. I am pulling data from a Dataverse table: Which is "FactPayments" in my Data Model.

 

FactPayments.png

 

I am then pulling data from a Sharepoint List, and in my Data Model it is called: FactTargetPurch

 

FactTargetPurch.png

My goal is to have a manager fill in a Target spending goal for all locations for the following month. I then want this goal to pull into my PBI visual as my Target.

 

I have another Dimensional table titled DimLocation:

DimLocation.png

 

And I have a Date/Calendar Dimensional table titled: "Dates table": 

 

Dates Table.png

 

Here is a screenshot of my Data Model: 

 

Data Model 1.0.png

 

Dates table relationships:

Date - Month (FactTargetPurch)

Date - Post Date (FactPayments)

 

DimLocation relationships:

Location - Location (FactTargetPurch)

Location - Location (FactPayments)

 

DimVendor relationships:

Pay To - Pay To

 

If someone could please look at this and explain to me what is going wrong that would be greatly appreciated. I've been attempting to solve this for the past 3 days and haven't came across a fix online or with ChatGPT. 

 

Thank you,

 

 

7 REPLIES 7
danextian
Super User
Super User

Hi @Tooks9597 ,

The columns that have a relationship should match with each  other. You're using Dates[Date] to Target[Month] which doesn't make sense as the latter only has the end of months. Instead, use Mth Yr and make sure the relationship flows in one direction from Dates to Target. This will be likely many to one or many to many










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi danextian,

 

My Dates[Date] is in the format of mm/dd/yyyy, my Month column in my target is also in that same format. 

Can you please post a sanitized copy of your model/ confidential data removed?










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Wilson_
Memorable Member
Memorable Member

Hi Tooks9597,

 

It looks like you're using Location from your fact table in your Small Multiples. Does it do what you want if you use the Location from your dimension table instead?


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

Hi Wilson, 

 

When I switch my Small Multiples to my Location from my DimLocation table, it breaks the visual it says "Couldn't load data for this visual"

Tooks,

 

I get errors to your pbix because I don't have permissions to some of your tables. However, your issue in using the Location from the dimension table likely stems from the fact that this is a mxed storage mode model, with DirectQuery tables, Imported tables and a calculated table pointing at one of your DirectQuery tables.

 

This maaaaaay be a decent place to start digging. Unfortunately, I don't work with them enough to help you here.

Tooks,

 

Ah you said that. Can you please share a sample pbix file? (If you don't know how, please check the pinned thread in the forum.) It would make debugging your issue easier. 🙂

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.