Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi friends,
Can you help me to write a measure to acheive the Result
Sample Data
Period Value Result
p1 100 100
p2 150 50
p3 175 25
p4 225 50
p5 300 75
Solved! Go to Solution.
Hi @RENJITH_R_S
You can achieve your goal, using the offset function.
1. Create a basic sum measure:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
if you use a slicer or you have spaces in the date, it's better to write the measure like this
CALCULATE(
[SumValue],
OFFSET(-1,
SUMMARIZE(ALLSELECTED('Table'),'Table'[Period]),ORDERBY('Table'[Period],ASC)))
if you use a slicer or you have spaces in the date, it's better to write the measure like this
CALCULATE(
[SumValue],
OFFSET(-1,
SUMMARIZE(ALLSELECTED('Table'),'Table'[Period]),ORDERBY('Table'[Period],ASC)))
Hi @RENJITH_R_S
You can achieve your goal, using the offset function.
1. Create a basic sum measure:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |