The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi folks,
I've a challenge with Opening Balance 🙂 It works well for the first couple of rows but doesn't afterwards. Please help.
Sure, I'm missing a trick here.
Thanks,
Mahesh
Solved! Go to Solution.
Hi @MaheshMk
You can use the below pattern.
previousMonthRR = VAR _lpd = CALCULATE( LASTDATE( 'Calendar'[Date] ), PARALLELPERIOD( 'Calendar'[Date], -1, MONTH ) ) RETURN CALCULATE( SUM( Table[Added] ) - SUM( Table[Sold] ) + SUM( Table[Returned] ) 'Calendar'[Date] <= _lpd )
Hi @MaheshMk ,
Have you solved the problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share your data sample as table format and your desired output so that we could help further on it.
Best Regards,
Cherry
Hi @MaheshMk
You can use the below pattern.
previousMonthRR = VAR _lpd = CALCULATE( LASTDATE( 'Calendar'[Date] ), PARALLELPERIOD( 'Calendar'[Date], -1, MONTH ) ) RETURN CALCULATE( SUM( Table[Added] ) - SUM( Table[Sold] ) + SUM( Table[Returned] ) 'Calendar'[Date] <= _lpd )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
90 | |
82 | |
64 | |
58 |
User | Count |
---|---|
246 | |
124 | |
115 | |
79 | |
78 |