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.
Hi,
Could you please help to amend this measure to concatenate text rather than integers? Thank you
=
IF (
HASONEVALUE ( 'Models'[ModelNumber] ),
CONCATENATEX (
FILTER (
ALLSELECTED ( 'Models'[ModelNumber] ),
'Models'[ModelNumber] <= SELECTEDVALUE ( 'Models'[ModelNumber] )
),
CALCULATE ( SUM ( Data[Val1] ) ),
", "
)
)
I have created sample data and how it should look like. I need it concatenated with each new date and value, but only for group A. The measure doesn't work.
Solved! Go to Solution.
Here you go...
ConcatDescriptions =
VAR CurrentDate = 'Table'[Date]
VAR FilteredTable = FILTER(
ALL('Table'),
'Table'[Group] = "A" && 'Table'[Date] <= CurrentDate
)
RETURN
IF(
'Table'[Group] = "A",
CONCATENATEX(
FilteredTable,
'Table'[Description],
", "
),
BLANK()
)
Proud to be a Super User!
Here you go...
ConcatDescriptions =
VAR CurrentDate = 'Table'[Date]
VAR FilteredTable = FILTER(
ALL('Table'),
'Table'[Group] = "A" && 'Table'[Date] <= CurrentDate
)
RETURN
IF(
'Table'[Group] = "A",
CONCATENATEX(
FilteredTable,
'Table'[Description],
", "
),
BLANK()
)
Proud to be a Super User!
Try this...
IF (
HASONEVALUE ( 'Models'[ModelNumber] ),
CONCATENATEX (
FILTER (
ALLSELECTED ( 'Models'[ModelNumber] ),
'Models'[ModelNumber] <= SELECTEDVALUE ( 'Models'[ModelNumber] )
),
CALCULATE ( SELECTEDVALUE ( Data[TextColumn] ) ),
", "
)
)
Proud to be a Super User!
Thank you @amustafa. Unfortunately this doesn't work I have created sample data and how it should look like
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
32 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |