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.
Hi everyone,
I was trying to move my Order Schedule on to Power BI. I already have my querys from the database onto Power BI, but can´t figure out the correct measures.
This screenshot is what I use at the moment. Simple outdated excel made manually and few formulas.
As you can see formulas in Excel are:
Trouble comes transforming this formulas in to Power BI measures.
Any advice?
Solved! Go to Solution.
Hi @Sandritto ,
Try this:
1. Create a column, which is the first value of "Initial Stock".
Column = 23.5
2. Create columns.
Measure 1 = MAX ( Table2[Offer] ) - MAX ( Table2[Demand] )
Measure 2 =
SUMX (
FILTER ( ALLSELECTED ( Table2 ), Table2[Date] <= MAX ( Table2[Date] ) - 1 ),
[Measure 1]
)
Initial Stock = MAX([Column])+[Measure 2]
Final Stock =
VAR m =
SUMX (
FILTER ( ALLSELECTED ( Table2 ), Table2[Date] <= MAX ( Table2[Date] ) ),
[Measure 1]
)
RETURN
m + MAX ( [Column] )
PBIX file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Sandritto ,
Try this:
1. Create a column, which is the first value of "Initial Stock".
Column = 23.5
2. Create columns.
Measure 1 = MAX ( Table2[Offer] ) - MAX ( Table2[Demand] )
Measure 2 =
SUMX (
FILTER ( ALLSELECTED ( Table2 ), Table2[Date] <= MAX ( Table2[Date] ) - 1 ),
[Measure 1]
)
Initial Stock = MAX([Column])+[Measure 2]
Final Stock =
VAR m =
SUMX (
FILTER ( ALLSELECTED ( Table2 ), Table2[Date] <= MAX ( Table2[Date] ) ),
[Measure 1]
)
RETURN
m + MAX ( [Column] )
PBIX file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can I get the PBI file of this solution?
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 |
---|---|
110 | |
109 | |
89 | |
76 | |
66 |
User | Count |
---|---|
126 | |
112 | |
99 | |
82 | |
73 |