Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Date table has the following fields: (Date field lists each day in the year)
| Date | Start of Month | |
| 1-1-2023 | 1-1-2023 | |
| 1-2-2023 | 1-1-2023 | |
| 3-1-2023 | 3-1-2023 |
Members table has the following fields (has more but for the context of this)
| Created date | Month-Year | |
1-10-2023 | ||
1-2-2023 | ||
3-1-2023 |
I want to add a column to the Members table (named:Month/Year) using the value in "Start of Month" value in the Date table which is equal to the "created date" value in the Members table.
I know -probably basic but haven't used DAX in a while
Thanks!
Jim
Solved! Go to Solution.
@jtpiazzamn Try:
Month/Year Column =
VAR __CreateDate = [Created date]
VAR __Result = MAXX(FILTER('Date',[Date] = __CreateDate), [Start of Month])
RETURN
__Result
@jtpiazzamn Try:
Month/Year Column =
VAR __CreateDate = [Created date]
VAR __Result = MAXX(FILTER('Date',[Date] = __CreateDate), [Start of Month])
RETURN
__Result
Thank you - I forgot to mention that the relationship between the Date Table and the Members Table is "inactive".
hi @jtpiazzamn
Greg's code does not rely on relationship. what issue did you encounter?
When I first started with a table
I then changed it to a bar chart
Then it worked - odd.
It appears to be ok. I thought it was relevant.
I have another question though. When I go to use this column (formatted as Date), when using it in a chart, it reads it as a count only - can't display the value of the date in the column.
I'm confused.
Thank you for helping!
Jim
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |