Forum Discussion
Create new column from values within table
- 6 years ago
Hi , Anonymous
Create a calculated column as below:
1st Column = VAR Quantity1 = CALCULATE ( SUM ( 'Table'[quantity] ), FILTER ( 'Table', 'Table'[Day] = EARLIER ( 'Table'[Day] ) && 'Table'[theLine] = "D10Cell1" ) ) VAR GoodParts = CALCULATE ( SUM ( 'Table'[Good Parts] ), FILTER ( 'Table', 'Table'[Day] = EARLIER ( 'Table'[Day] ) && 'Table'[theLine] = "D10Cell4" ) ) RETURN DIVIDE ( GoodParts, Quantity1 )Here is sample :
URL:Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I think it is a case of category min-max, where category is day,
Refer :https://community.powerbi.com/t5/Desktop/highest-value-by-category/td-p/428758
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin