Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Guys,
Please refer the below table:
I've the two columns in my report i.e Usage and Unit and want the third column which will be Unit(Kwh).
I want the uasge values to get multiplied by 1000 where ever unit is mWh and rest should remain same.
I got one part of the expected solution using the below formula but kWh values were missing. Kindly help. me with this.
Regards,
Himanshu
| Usage | Unit | Expected Output Column: Unit(kWh) |
| 43450 | kWh | 43450 |
| 2430 | mWh | 2430000 |
| 4500 | mWh | 4500000 |
| 2365 | kwh | 2365 |
| 12345 | mWh | 12345000 |
Solved! Go to Solution.
@Anonymous , Try like
Unit (Kwh) = IF (
VIEW_FORECASTREVENUE[COMMODITY] = "Electric" && [Unit] in{ "mWh" },
ROUND ( VIEW_FORECASTREVENUE[FORECASTEDUSAGE] * 1000.0, 0 )+0, VIEW_FORECASTREVENUE[FORECASTEDUSAGE])+0
@Anonymous , Try like
Unit (Kwh) = IF (
VIEW_FORECASTREVENUE[COMMODITY] = "Electric" && [Unit] in{ "mWh" },
ROUND ( VIEW_FORECASTREVENUE[FORECASTEDUSAGE] * 1000.0, 0 )+0, VIEW_FORECASTREVENUE[FORECASTEDUSAGE])+0
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 57 | |
| 42 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 113 | |
| 108 | |
| 38 | |
| 35 | |
| 26 |