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.
Hi all,
I'm trying to merge two graphs onto one to highlight some trends over the past year.
The data i'm using is safety certificates so each one has an expiry date and an issue date. I'm trying to show on the graph, how many expired in each month of the year and how many were issued. (As seen in picture on 2 separate graphs).
However, when I go to merge these two on a graph, it will either use the expiry date or issue date as the x axis and then both will show the same valules (as seen below).
Does anyone know how I can use dates as a x-axis that aren't linked to either date? Or is there a simpler way for me to do this?
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
You can create a Date table first and set date field of Date table as X axis for your column chart. Then create two measures as below:
Count of rk_issuedate =
CALCULATE (
SUM ( table[rk] ),
FILTER (
ALLSELECTED ( table ),
table[issue date] <= SELECTEDVALUE ( Date[date] )
)
)
Count of rk_expirydate =
CALCULATE (
SUM ( table[rk] ),
FILTER (
ALLSELECTED ( table ),
table[expiry date] <= SELECTEDVALUE ( Date[date] )
)
)
Best Regards
Hi @Anonymous ,
You can create a Date table first and set date field of Date table as X axis for your column chart. Then create two measures as below:
Count of rk_issuedate =
CALCULATE (
SUM ( table[rk] ),
FILTER (
ALLSELECTED ( table ),
table[issue date] <= SELECTEDVALUE ( Date[date] )
)
)
Count of rk_expirydate =
CALCULATE (
SUM ( table[rk] ),
FILTER (
ALLSELECTED ( table ),
table[expiry date] <= SELECTEDVALUE ( Date[date] )
)
)
Best Regards
@Anonymous ,You have to create a common date table. If they are from the same table there will one inactive join which you can activate using userealtionship
refer examplehttps://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |