Forum Discussion
Combine Calculated numerical column with text formatted unit column
I am trying to use this to track progress for concrete installation. Each individual piece of concrete has it's own row in the table. I have found a workaround in case I can't find a solution here, but please bear with me as this will be a lengthy explanation.
I have a Column titled "CIP Concrete Install Status", with the 6 different possible values being: "Not Installed, 1) Formed, 2) Rebar Set, 3) Poured/Finished, 4) Cured, 5) Epoxy-ed/Complete.
There is a separate Column titled "Takeoff Quantity", which provides accurate measurement of each individual piece, based on what unit of measurement you are tracking it by.
There is a column for "Unit", which contains the possible values: "LF,SF,CY,EA". This column denotes what unit of measurement each individual piece of concrete's Takeoff Quantity is associated with.
I have been able to create individual calculated columns to determine the amount of each unit has been assigned to each status, but it is incredibly cumbersome and makes visualizing the data way more difficult.
First I created a calculated column for Linear Footage:
Again, this works fine and displays the information accurately, but the only way the unit of measure can be determined is by the column title.
I want to be able to have 1 column that displays All concrete that has been Poured/Finished, rather than creating 4 individual columns titled "CIP LF Poured/Finished", "CIP SqFt Poured/Finished", "CIP CY Poured/Finished", "CIP EA Poured/Finished
" and then repeating that for the other 5 statuses, thus having 20 calculated columns. There is no way that will be readable on a table.
I tried to Concantacate, but when i do that it won't sum the values anymore.
here is what i wrote, please tell me where i'm going wrong:
only 20 LF is displaying on the right column, when it should be 180 LF
MPRGray -
I hope someone comes up with a better solution. Creating a new table using GROUPBY ( CALCULATETABLE ( ) ) what I came up with:
Table = GROUPBY ( CALCULATETABLE ( TableName, TableName[CIP Concrete Install Status] = "3) Poured/Finished" ), TableName[Activity ID], TableName[Unit], "Total", SUMX ( CURRENTGROUP (), TableName[CIP Poured/Finished] ) )
5 Replies
- ChrisMendozaResident Rockstar
MPRGray -
Did you try https://www.sqlbi.com/articles/using-concatenatex-in-measures/? Providing sample data is a good idea.
- MPRGrayAdvocate I
Thanks, I haven't tried that yet. I'm still pretty new to Power BI and have a bit of trouble with measures.
How would i reference a column like "CIP Install Status" in a measure?
Really not sure where to start with figuring this out. Sorry!
- ChrisMendozaResident Rockstar
MPRGray -
While you've taken the time to explain your data, I am still unsure of how your dataset looks. Please provide a sample dataset that we can try to assist with. You will have a better response from the community. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490