The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |