The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
In query editor, create an index from 1, then create a calculate column using dax below:
Result = VAR Current_Index = 'Table'[Index] VAR Current_Value = 'Table'[value] RETURN IF(MOD(Current_Index, 2) <> 0, Current_Value / CALCULATE(MAX('Table'[value]), FILTER('Table', 'Table'[Index] = Current_Index + 1)))
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Could you please share the sample data and give the expected result?
Regards,
Jimmy Tao
Can you please rephrase your question. Its not clear
Proud to be a Super User!
KPIs value
ABC 18
ade 18
wade 27
def 27
I want to divide the row's value by each other
i.e wade/def
ABC/ade
I need a DAX expression what would help achieve this
In query editor, create an index from 1, then create a calculate column using dax below:
Result = VAR Current_Index = 'Table'[Index] VAR Current_Value = 'Table'[value] RETURN IF(MOD(Current_Index, 2) <> 0, Current_Value / CALCULATE(MAX('Table'[value]), FILTER('Table', 'Table'[Index] = Current_Index + 1)))
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.
User | Count |
---|---|
158 | |
109 | |
96 | |
83 | |
75 |
User | Count |
---|---|
154 | |
137 | |
131 | |
81 | |
62 |