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
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
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |