Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Team,
Im trying to calculate a new column using two related columns and the values of the 3rd column. The problem is that I have first column (Alias) and it has redundant data and the second (Time Type) has related data to the cells of that of the first column (Alias). Both the first and the second are text values. The third however (Measure x) has number values. how can I make the calculation for such a table ? I need to sum all the specific Alias activity for example AIBRAHIM69 I need to sum the following (Day of Rest, Job, and On) then I need to the Job value for AIBRAHIM69 to be devided by the sum of the time type of the AIBRAHIM69 (Day of Rest, Job, and On). Basically for AIBRAHIM69 it will be (7/19+7+5). so how can I calculate that ?
Solved! Go to Solution.
Hi @Anonymous
If the [Meaure x] is a column,
for example, in my test, [value] represents the [Meaure x],
to get results, create a measure
job/sum =
DIVIDE (
CALCULATE (
SUM ( 'Table'[value] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[alias] ), 'Table'[timetype] = "job" )
),
CALCULATE ( SUM ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[alias] ) )
)
If [Measure x] is a measure, create a measure
job/sum 2 =
DIVIDE (
SUMX (
FILTER ( ALLEXCEPT ( 'Table', 'Table'[alias] ), 'Table'[timetype] = "job" ),
[Measure]
),
SUMX ( ALLEXCEPT ( 'Table', 'Table'[alias] ), [Measure] )
)
Hi @Anonymous
If the [Meaure x] is a column,
for example, in my test, [value] represents the [Meaure x],
to get results, create a measure
job/sum =
DIVIDE (
CALCULATE (
SUM ( 'Table'[value] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[alias] ), 'Table'[timetype] = "job" )
),
CALCULATE ( SUM ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[alias] ) )
)
If [Measure x] is a measure, create a measure
job/sum 2 =
DIVIDE (
SUMX (
FILTER ( ALLEXCEPT ( 'Table', 'Table'[alias] ), 'Table'[timetype] = "job" ),
[Measure]
),
SUMX ( ALLEXCEPT ( 'Table', 'Table'[alias] ), [Measure] )
)
i made a simplified sample table and a measure to do the calculation
the report looks like this
and the measure like this
Help when you know. Ask when you don't!
Hello Kentyler,
the solution you sent is for a hard coded table. The data that I'm dealing with is from a sharepoint list. how can I apply this on that ?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |