calculated rows
3 TopicsHelp needed - How to create a single row table with the value from a selectedvalue.
I need to create a table and then with this table, to create another table. But the first table need to be created from a selection. Tried everything and I just can't go on. The measure getting the selectedvalue: Selected = SELECTEDVALUE(dProducts[ProductCode]) The first table attempt : FilteredBySelectedValue = Var _ProductCode = [Selected] Return ROW( "ProductCode",_ProductCode) The second table attempt : fBasketRelated = FILTER( CROSSJOIN( VALUES(FilteredBySelectedValue[ProductCode]),SELECTCOLUMNS( VALUES( fSalesDetails[ProductCode]),"RProductCode",[ProductCode])),[ProductCode]>[RProductCode]) The result : Nowhere. The model : stevedep The PBI fileSolved7.4KViews0likes6CommentsIf Empty/0 MAX Sum of one of two columns
So I have a column in a matrix that is kicking my tail and I'm trying to make a calculated column to resolve this. It's a column that if no values for that Category in the table are present it turns up blank and that is causing problems in the report. Each column represents a table of transactions in the dataset. The problem child is the "Cost to Complete" column. If there are adjustments out side of the estimate to a particular category, transaction totals are populated in Cost to Complete and the remaining budget is based on those adjustments. However if no adjustments are made, the cost to complete column should reflect the higher of the Revised Estimate or the Actual costs. I've tried the below formula but it always is coming up False and using the Cost to Complete. = IF(isblank(CALCULATE(SUM(Cost To Complete))),MAX(CALCULATE(SUM(Actual Costs)),CALCULATE(SUM(REvised Estimate))),CALCULATE(SUM(Cost to Complete))) It would also seem my Max statement is not doing it's job correctly either as I reversed the true/false formulas and I'm getting a totally off the wall value. Looking for some guidance.929Views0likes1CommentHow to add Calculated rows in a PBI Matrix
Hi all, I want to insert calculated rows to a power BI matrix. How do i add this? I can add calculated columns. But not sure how to structure the data and what are the functions to use to do this; 2018 Vol(KG) 100 Turnover 12,000 Cost (8,000) Gross Profit 4,000 Cost/KG 40 Gross margin 33.3% This is what the matrix should look like. Cost/KG and Gross margin are calculated using above rows. Please assist9KViews0likes1Comment