Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello!
Baseline calculation returns inventory amount for Friday if Saturday is 0/blank.
Row Labels | WE Inv. |
Area 1 | 150,000 |
Region 1 | 30,000 |
Plant | 12,500 |
Prod 1 | 10,000 |
Prod 2 | 1,000 |
Prod 3 | 1500 |
Plant 2 | 25,000 |
Solved! Go to Solution.
@BenPo , You have to try like
Inv =if(CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=7))=0,
CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=6)),
CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=7)))
New Inv = sumx(summarize(Table, [Region], [area], [plant], [product], "_1",[Inv]),[_1])
Thank you, amitchandak!
Hi @BenPo ,
Please create another new measure as below base on your original measure and check whether it can work in your scenario:
SUMX (
GROUPBY (
InventoryTable,
'InventoryTable'[Area],
'InventoryTable'[Region],
'InventoryTable'[Plant]
),
[Yourmeasure]
)
If the above one is not working, you can also refer the method in the following links to get it. Or you can provide some sample data in your InventoryTable and the formula of measure [CountTotal], later we will check and provide the solution.
Clever Hierarchy Handling in DAX
Use IsInScope to get the right hierarchy level in DAX
Best Regards
@BenPo , You have to try like
Inv =if(CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=7))=0,
CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=6)),
CALCULATE(sumx(InventoryTable,InventoryTable[CountTotal]),filter(Date,Date[FiscalDayOfWeek]=7)))
New Inv = sumx(summarize(Table, [Region], [area], [plant], [product], "_1",[Inv]),[_1])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
97 | |
75 | |
63 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |