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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sidn
Frequent Visitor

Unpivoted dates with data not being recognized in charts

Hi all, I'm a PowerBI beginner. I have an unpivoted data table that is structured like this:

 

Project NameRevenue QuarterRevenue ValueMargin QuarterMargin Value
ABC03/1/202112303/1/2021100
DEF06/1/202145606/1/2021400
GHI09/1/202178909/1/2021700
JKL12/1/202111212/1/2021100

 

Now because it's unpivoted, each of these rows is actually repeated multiple times. When I try to make combination graphs with two columns, then the second one I add always shows up as a constant number. 

 

Capture.PNG

 

(The dark blue column has the exact same value even though it should vary like the light blue column)

 

Or like this:

 

Capture2.PNG

 

It seems like it's just summing all the numbers from one date, instead of collecting from each quarter like I would expect. 

 

Here's a real picture of the data table if it helps: (this is all from the first project)

 

Capture1.PNG

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sidn , Create a common date table and join it with both dates. One join will be inactive which you can activate using userelationship

 

use date /date period from common date table in visuals

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sidn , Create a common date table and join it with both dates. One join will be inactive which you can activate using userelationship

 

use date /date period from common date table in visuals

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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