Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Solved! Go to Solution.
Without knowing what your Dates table looks like, you can try something like:
Measure =
VAR _MMMYYTable =
SUMMARIZE(
GENERATE( Dates, ROW( "label", FORMAT( Dates[Date], "MMMYY" ) ) ),
[label]
)
VAR _concat =
CONCATENATEX( _MMMYYTable, [label], ", " )
RETURN
_concat
Note that if you add a column to your Dates table with the text you want, e.g. a [MMMYY] column, then _MMMYYTable = VALUES ( Dates[MMMYY] ) could be used instead of the SUMMARIZE/GENERATE
Without knowing what your Dates table looks like, you can try something like:
Measure =
VAR _MMMYYTable =
SUMMARIZE(
GENERATE( Dates, ROW( "label", FORMAT( Dates[Date], "MMMYY" ) ) ),
[label]
)
VAR _concat =
CONCATENATEX( _MMMYYTable, [label], ", " )
RETURN
_concat
Note that if you add a column to your Dates table with the text you want, e.g. a [MMMYY] column, then _MMMYYTable = VALUES ( Dates[MMMYY] ) could be used instead of the SUMMARIZE/GENERATE
Thanks so much, both versions you provided work perfectly! Awesome!
@bsz412 , Try like
CONCAT TEST =
CONCATENATEX(
VALUES(AW_Calendar_Lookup[Date].[Month]),
format(AW_Calendar_Lookup[Date], "MMMM"),
","
)
it gives the following error message
A single value for column 'Date' in table 'AW_Calendar_Lookup' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation su
@bsz412 , Sorry, Try this
CONCAT TEST =
CONCATENATEX(
VALUES(AW_Calendar_Lookup[Date].[Month]),
format(max(AW_Calendar_Lookup[Date]), "MMMM"),
","
)
The problem with this one is that it repeats the MAX value like :
August, August, August, August
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
93 | |
87 | |
80 | |
69 | |
68 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |