Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi im new in DAX and have the next situation,
I have a table with 5 columns:
The last 4 columns are measures. This measures are showing sales of each business of this year and the last year. With this information im calculating the % of increase in sales (%_Crecimiento_Ventas). In the last column i put a conditional measure that evaluate if the % is greates than 0 then show "SI" if not show "NO"
I need to count on the number of business that increased sales, (it mean Incremento_Ventas = SI), and show this value in a card visualization. for example in this table i need to show 4 business that increase sales.
Someone can help me with this trouble?
Thanks for your help
Solved! Go to Solution.
-- First, you should use DIVIDE instead of / %_Crecimiento_Ventas = var __Ventas_Periodo_Seleccionado = [Ventas_Periodo_Seleccionado] var __Ventas_Periodo_Anterior = [Ventas_Periodo_Anterior] return divide( __Ventas_Periodo_Seleccionado - __Ventas_Periodo_Anterior, __Ventas_Periodo_Anterior ) -- And this is (most likely) what you need: [# Businesses With SI] = var __businesses = VALUES( Establecimientos[Nombre_Establecimiento] ) var __businessesWithSI = filter( __businesses, [Incremento_Ventas] = "SI" ) var __countOfbusinessesWithSI = countrows( __businessesWithSI ) return __countOfbusinessesWithSI
Best
Darek
-- First, you should use DIVIDE instead of / %_Crecimiento_Ventas = var __Ventas_Periodo_Seleccionado = [Ventas_Periodo_Seleccionado] var __Ventas_Periodo_Anterior = [Ventas_Periodo_Anterior] return divide( __Ventas_Periodo_Seleccionado - __Ventas_Periodo_Anterior, __Ventas_Periodo_Anterior ) -- And this is (most likely) what you need: [# Businesses With SI] = var __businesses = VALUES( Establecimientos[Nombre_Establecimiento] ) var __businessesWithSI = filter( __businesses, [Incremento_Ventas] = "SI" ) var __countOfbusinessesWithSI = countrows( __businessesWithSI ) return __countOfbusinessesWithSI
Best
Darek
Thanks Darlove.
It worked perfect!!!
Regards
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |