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.
I have three values with deliverables on specific dates. I need to show all three running-total curves on the same graph. I create a calendar-based measure to create relationships for all three measures so that I can use the Calendar-date-set on graph X-axis. When I plot the running totals against the calendar-based set, they do not show as running totals anymore, they show as daliverables by day.
Steps i take:
Showing in snips.
Snip:
Solved! Go to Solution.
hi @Mike_Mace
For your case, you could create three relationship between Calendar table and data table at the same time.
But only one relationship is active, or you could set all them are inactive.
For example:
here is a simple sample.
Then create three measure and use USERELATIONSHIP Function in the formula
REAL AC = CALCULATE(SUM('Table'[PESO]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))
PLAN AC = CALCULATE(SUM('Table'[PESO]),USERELATIONSHIP('Calendar'[Date],'Table'[PECHA PLAN]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))
Now drag date filed from Calendar table and these measure into a line visual.
here is sample pbix file, please try it.
Regards,
Lin
hi @Mike_Mace
For your case, you could create three relationship between Calendar table and data table at the same time.
But only one relationship is active, or you could set all them are inactive.
For example:
here is a simple sample.
Then create three measure and use USERELATIONSHIP Function in the formula
REAL AC = CALCULATE(SUM('Table'[PESO]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))
PLAN AC = CALCULATE(SUM('Table'[PESO]),USERELATIONSHIP('Calendar'[Date],'Table'[PECHA PLAN]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))
Now drag date filed from Calendar table and these measure into a line visual.
here is sample pbix file, please try it.
Regards,
Lin
@Mike_Mace so when you created relationship between your data table with date table, one relationship is active and other must be inactive, because you can have only one relationship active between two tables. For the date columns which have inactive relationship, you need to use userrelationship function in your measure to make inactive relation active and after that if you drop date from date table on x-axis and all measures, you will see correct information.
Would appreciate Kudos 🙂 if my solution helped.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Appreciate the point @parry2k on inactive relationships
Issue is, even if i use only one relationship between Date set 1 and calendar dates the information still shows distorted, snip 3.
If you help me with this I'll get the whole office to give you kudos 🙂
@Mike_Mace send me your pbix with email and I will get it done. remove sensitive information before sharing. my email address is in footer. That is going to be faster and quicker way to get you over the line. cheers!!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |