Forum Discussion
Creating a summary table without importing another source.
- 4 years ago
third_hicana no sorry, with first one I refered to the first code i gave you about the new table.
Create the Table Type with this code:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcs7PKylKTC7JL1LSUTJWitWJVgpILcpNzEvNK4GLhCUmJ+YlV0L4sQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Type = _t, DUMMY = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Type", type text}})
in
#"Changed Type"then a new table with:
let
Source = Table,
#"Added Custom1" = Table.AddColumn(Source, "DUMMY", each "3"),
#"Merged Queries" = Table.NestedJoin(#"Added Custom1", {"DUMMY"}, Type, {"DUMMY"}, "Type", JoinKind.LeftOuter),
#"Expanded Type" = Table.ExpandTableColumn(#"Merged Queries", "Type", {"Type"}, {"Type.1"}),
#"Added Custom" = Table.AddColumn(#"Expanded Type", "Count", each if [Contract Type] = [Type.1] then 1 else 0),
#"Grouped Rows" = Table.Group(#"Added Custom", {"Start Date", "Type.1"}, {{"Count", each List.Sum([Count]), type number}})
in
#"Grouped Rows"BBF
Hi BeaBF So I created this bar graph. But it does not pick up the previous month count for the permanent (btw I changed it to "payroll". Is there any way that the dax can maintain the number of payroll, contractor and vacancy each month? It will just change if there is a date entered in the end date column. Thank you.
For example, if there are 10 contractors on January, it will also appear 10 contractors on February as long as their no date in the end date column.
This is I wish to achieve excluding the line graph.
BeaBF I tried to make a visualisation. However, I can't achieve the second one. I think it is because the counts from previous month does not pick up the next month. Apreciate if you can assist me in achieving the second bar graph.
- BeaBF4 years ago
Super User
third_hicana Could you by any chance share the PBI? in order to work in parallel on your own data
BBF
- third_hicana4 years ago
Helper IV
Hi BeaBF I am not sure if I can attach here the PBi file. Do you know how can I send it here?
- BeaBF4 years ago
Super User
you can drag and drop a file below the reply