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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi,
I created measure to get min of 2 columns, Total is not coming correct. Then I use HASONEFILTER but it giving error.
my data and measure as below:
Min of Dec and Jan= if(HASONEFILTER(Table[Customer]),min([Dec Sales],[Jan Sales]),CALCULATE(sumx(V_Cust_Aging, MIN([Dec Sales],[Jan Sales])))) |
Company | Customer | Dec Sales | Jan Sales | Min of Dec and Jan |
1001 | 1234 | 200 | 50 | 50 |
1001 | 1235 | 300 | 700 | 300 |
1002 | 1111 | 250 | 1000 | 250 |
750 | 1750 | 750 |
Kindly help
Regards
Samar
Why not just do something like Smaller = if([DecSales]<[JanSales],[DecSales],[JanSales])?
Hi,
Thanks for reply, I did it but the total is not coming correct. It is giving some of December Sales.
Regards
Samar
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.