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 August 31st. Request your voucher.
I need to concatenate my month field with the year and let them in ascending order, Jan / 2008 fev2008 etc ....
I tried a simple concatenation and then apply the classification but did not work
Here is an example for clarity:
I generally create a column like:
= FORMAT([Date],"yyyymm")
And then use that as my Sort By column for the friendly display name column.
I forgot to say that the fields are from different tables, the way to do it would be the same?
*should* 🙂 You would want to create your new "sort by" column in the same table as your date display field.
@Anonymous You'll have to use the function RELATED(TableName[Column]) for one of them
@Anonymous if you are in Table 1 doing this
= Table1[Column1]&" - "&RELATED(Table2[Column2])
Let me know if this works.
the following error is occurring:
"Unable to determine a single value for the 'Month' column in the 'dmegf_mes' table. This can happen when a measure formula refers to a column that contains many values, without specifying an aggregation such as min, max, count or sound for a unique result. "
my expression: = NewColumn dmegf_mes [Month] & "-" & RELATED (dmegf_ano [Year])
@Anonymous Hit Create New COLUMN - NOT Measure!
that's what I'm doing, I'm going the option to create a new column and not measured
@Anonymous
NewColumn = dmegf_mes [Month] & "-" & RELATED (dmegf_ano [Year])
the same error still occurs,
"Could not determine a single value for the 'month' column in the 'dmegf_mes' table. This can happen when a measurement formula refers to a column that contains many values, without specifying an aggregation such as min, max, count or sound for a unique result. "
@Anonymous show me what's in both columns - select each and show me whats in them (formula bar and data type)
the formula works - look
@Anonymous
Create a New Column= TableName[Month]&" - "&TableName[Year]
this will give you => Month - Year
User | Count |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
51 | |
48 | |
48 |