Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Team,
I have a requirement first half of the year my cost will remain same, but later secound half of the year my cost should add 6th month cost.
Ex : month Cost
1 23
2 21
3 20
4 33
5 12
6 15
7 12+15
8 11+15
9 09+15
10 14+15
11 24+ 15
12 26+15
Above example is just a dummy please let me know if this is possbile.
Solved! Go to Solution.
Hi Amit,
I tried with both like creating Measure and column also but i am getting same error.
Hi @Naveen_SV
Please create a new column with below code. PBIX is attached.
new cost =
IF (
'Table'[Month] > 6,
MAXX ( FILTER ( 'Table', 'Table'[Month] = 6 ), 'Table'[Cost] ) + 'Table'[Cost],
'Table'[Cost]
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Naveen_SV
Please create a new column with below code. PBIX is attached.
new cost =
IF (
'Table'[Month] > 6,
MAXX ( FILTER ( 'Table', 'Table'[Month] = 6 ), 'Table'[Cost] ) + 'Table'[Cost],
'Table'[Cost]
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi Amit,
Can you send me pbi file please it will help
@Naveen_SV , try new column like
new column =
var _cost = maxx(filter(Table, [Year] =earlier([Year]) && [Month] =6), [Cost])
return
if([Month] >6 , _cost + [Cost], [Cost])
HI Amit,
thanks for your reply, i don't have this year column but i have only month in number, when i tried your
formuale i am getting this error pleas find the below table
<pi>A circular dependency was detected: Invoice[Running total].</pi>
@Naveen_SV , Try like
new column =
var _cost = maxx(filter(Table, [Month] =6), [Cost])
return
if([Month] >6 , _cost + [Cost], [Cost])
Hi Amit,
I tried with both like creating Measure and column also but i am getting same error.
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 |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |