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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I am migrating qlikview to Power Bi. I have following expression in qliview that needs to be converted in Power BI
((SUM(IF(Mode_group_3 = 'AirImport',[ChglWt(KG)],0)))/1000) How to write above expression in Power BI.
can you tell me .what exactly output this function will give you so it will help me to understand .
what i understood is
((SUM(IF(Mode_group_3 = 'AirImport',[ChglWt(KG)],0)))/1000)
when mode group 3 = Airimport then sum chglwt(kg) then divide it from 1000 . if its correct then
you can use below formula
measure = calculate(sum([ChglWt(KG)]),Mode_group_3 = 'AirImport")
or you can use this as well if you want to divide with 1000 then use below formula
measure = calculate(divide(sum([ChglWt(KG)]),1000,0),Mode_group_3 = 'AirImport")
this will give you sum of [ChglWt(KG)] then divide it from 1000 .
This is fgiving me following error
you Need to remove extra bracket from the formula and kindly use " " excat same field from data in " " (which you want to filter).
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |