Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Team,
I need "Remaining UID Stock" column result,
each category subtract with UID (sum of uique UID name)
(Inv Date is separate table)
Prod_Total -> Prod_Total = CALCULATE(
VAR MaxDate = MAX ( 'INV DATE'[Date] )
RETURN
CALCULATE (
sum('DIM'[Qtd],
'INV DATE'[Date] <= MaxDate,
ALL ('INVOICING DATE')
)
)
Stock -> DIVIDE([Total UID Stock],[Qtd])
Thanks,
KV's
Solved! Go to Solution.
Hi @Anonymous ,
The data you provided is incomplete,I guess you wanna get a result as below:
If so,you could try to modify your measure as below:
Prod_Total -> Prod_Total = CALCULATE(
VAR MaxDate = MAX ( 'DIM'[Date] )
RETURN
CALCULATE (
sum('DIM'[Qtd]),
FILTER(ALL('INV DATE'),'INV DATE'[Date] <= MaxDate,
)
)
Or check my .pbix file attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
DIM Stock, Prod_Total both are calculated value,
Slicer -> DIM date based on dynamic result need
Hi @Anonymous ,
The data you provided is incomplete,I guess you wanna get a result as below:
If so,you could try to modify your measure as below:
Prod_Total -> Prod_Total = CALCULATE(
VAR MaxDate = MAX ( 'DIM'[Date] )
RETURN
CALCULATE (
sum('DIM'[Qtd]),
FILTER(ALL('INV DATE'),'INV DATE'[Date] <= MaxDate,
)
)
Or check my .pbix file attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@Anonymous ,Can you share sample data and sample output in table format?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |