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.
This is an sample excel data.Here , for the third column (% of Diff) is calculated based on formula (B2-B1)/(B1).How we can calculated this column in Power bi,If i have first and second column in power bi?
Hi @NISHA_S,
Sorry, i'm not sure about the calculation logic of '(B2-B1)/(B1)'.
Could you provide more details?
Best Regards,
Link
@NISHA_S , if you do not have date , create a date column like
Date = "01 " & [monthly] //change datatype to date.
Then join ith with date table and try measures like
MTD = CALCULATE(Average(Table[Value]),DATESMTD('Date'[Date]))
last MTD = CALCULATE(Average(Table[Value),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month = CALCULATE(Average(Table[Value),previousmonth('Date'[Date]))
diff = [MTD]-[last MTD]
diff % = divide([MTD]-[last MTD],[last MTD])
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |