Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello everyone,
I've created a measure to calculate the total value of open cases year to date (until today), as shown below:
All Count Cases YTD =
TOTALYTD(
COUNT('Case'[CaseNumber]);
'Case'[CreatedDate].[Date];
FILTER(
ALL('Case');
'Case'[CreatedDate] <= MAX('Case'[Today])
)
)
Everything worked fine:
The Column CreatedDate is formated as Date and has hierarchy:
My problem starts when I try to show only first 3 letter of the month in table.
To do it, I created a new column in query, using following M formula, based on column CreatedDate:
#"Nome do Mês Inserido" = Table.AddColumn(#"Colunas Reordenadas", "MonthName(mmm)", each Text.Start(Date.MonthName([CreatedDate], "en-US"), 3), type text),
My column is formated as text (maybe here is the problem, dunno).
When I try to use this column in the table the measure get lost:
All columns are in the same table, because of that I thought they'd be related each other, but don't.
Is it possible to do what I want? If so, what's the right way to do it?
Thank you.
Solved! Go to Solution.
The month-only date is not in date format, you need to convert to date format from text like below:
#"Nome do Mês Inserido" = Table.AddColumn(#"Colunas Reordenadas", "MonthName(mmm)", each Date.FromText(Text.Start(Date.MonthName([CreatedDate], "en-US"), 3)), type date),
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The month-only date is not in date format, you need to convert to date format from text like below:
#"Nome do Mês Inserido" = Table.AddColumn(#"Colunas Reordenadas", "MonthName(mmm)", each Date.FromText(Text.Start(Date.MonthName([CreatedDate], "en-US"), 3)), type date),
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
98 | |
91 | |
84 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |