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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello community
I need your help with this case:
I need to calculate the Index value using a value base ("Presentacion=1") into the same field with the rest of differents values (Presentacion = 2, 3, 4.. etc) but the problem is tha value doesn't appear in the calculate
I don't undestand why my var: _Single show that values
I need to divide (_rest, _single) but the value _single doesn't works correctly
see attach_Single doesn't work
Thanks for your support
Solved! Go to Solution.
pls try this
Index Single Price Consumo =
VAR _Single = CALCULATE( [Price Unit Consumo],'CATALOG'[Presentacion]=1,ALLEXCEPT('CATALOG','CATALOG'[Marca],'CATALOG'[SubCategoria], 'CATALOG'[Subfuncionalidad], 'CATALOG'[Segmento],'CATALOG'[Fact_Conversion])
)
VAR _Rest = CALCULATE([Price Unit Consumo])
VAR _Index =
DIVIDE ( _Rest, _Single, 0 )
RETURN
_Index
Hi @Ahmedx this is an example file:
Excel File
[Price Unit Consumo]= divide (sum(POS SALES DOLAR), sum(UNIDAD CONSUMO))
I need calculate de "Index Presentacion"
This an example:
Thanks for your support
regards
CMolina
I need your pbix file to understand what's wrong
pls try this
Index Single Price Consumo =
VAR _Single = CALCULATE( [Price Unit Consumo],'CATALOG'[Presentacion]=1,ALLEXCEPT('CATALOG','CATALOG'[Marca],'CATALOG'[SubCategoria], 'CATALOG'[Subfuncionalidad], 'CATALOG'[Segmento],'CATALOG'[Fact_Conversion])
)
VAR _Rest = CALCULATE([Price Unit Consumo])
VAR _Index =
DIVIDE ( _Rest, _Single, 0 )
RETURN
_Index
THANKS A LOT
It's this work correctly
share your file to help you
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |