The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a fact table with two dateids: INCEPTIONDATEID and EXPIRYDATEID
These are not dates but numerical columns.
I have a date dimension table with DATEID and a Start of Month column which displays only the month and year of the DATEID
I have an active relationship between INCEPTIONDATEID and DATEID and an inactive relationship between
EXPIRYDATEID and DATEID
So in my table, I can show Inception Month by brining in Start of Month from the date dimension table, because of the active relationship between the two dates.
However I also want to display the expiry month. Without manually creating an expiry month and year column in the Fact table, I have no idea how to do this - I figure I need to create a calculated column perhaps in my date dimension table which uses the relationship between EXPIRYDATEID and DATEID but I don't know how to go about this.
Help please!
use the userrelationship function and values function to create the calculated column
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
@mh2587 I figured I need to do this, but I don't now the sytax for creating the calculated column. Are you able to help me write it?
User | Count |
---|---|
59 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |