calculate
5 TopicsCalculate Value to GAP Price
Hi team, I need your help to calculate "GAP PRICE", this is divide the Price Value of one column value between the another value from same column A column has 2 values: "Company 1" and "Company 2" Each Product has an Unit Price in each Company GAP_Price Product 1 = Unit Price (product 1 in Company 1) / Unit Price (product 1 in Company 2)Solved913Views0likes4CommentsCalculating a value in a cell except for Blanks and N/A
Hi, I am trying to calculate a Measure in power BI that returns me a count if a value is present in a cell, except for N/A and blanks, similar to the Total Fruit & Vegetables column below: Fruit Vegetables Total Fruit & Vegetables Apple N/A 1 Orange Cucumber 2 Celery 1 Does anyone know what is the line of code for this in DAX Power BI? Thanks in advanceSolved1.8KViews0likes2CommentsAverage per row, reseting on each month
Hello! First Post. I have data of my country's position on a ranking list. I need to determine the average of that position for each month separately. Currently im using: Promedio = CALCULATE( AVERAGE(PowerBI[Posición]); FILTER(PowerBI; PowerBI[Fecha].[Month]<=EARLIER(PowerBI[Fecha].[Month]) && PowerBI[Fecha].[Day]<=EARLIER(PowerBI[Fecha].[Day])) ) But the averages are wrongly calculated. I also noticed that on the first day of the month if position is 50 the average shows 55.5 which means its carrying values from the previous months. Please help me fix my formula. Thanks in advance.Solved2.1KViews0likes3Commentscalculate
I have a table named "spend data" with different Material numbers. For each material number, there are several spends. I want to sum up the total spend for each material number and count how many distinct material numbers with its total spend greater than 100,000. I created a new measure called "total spend per Material number"= calculate(sum('spend data'[totalspend]),allexcept('spend data','spend data'[material number])). And then created a measure called "number of material ID whose total spend >100,000"=calculate(distinctcount('spend data'[material number]),'spend data'[total spend per Material number]>100000). But this functon does not work. The error shows " A function CALCULATE has been used in a TRUE/FALSE expression that is used as a table filter expression. This is not allowd. What should I do to calculate the distinct Material numbers whose total spend greater than 100,000?Solved1.1KViews0likes2Comments