Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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:
Table data
The Column CreatedDate is formated as Date and has hierarchy:
CreatedDate as 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 |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |