Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I'm trying to build a column that is filled with the value from another column.
Fill the column with the total income for that particular month
(For clarity, the value would change depending on the month)
Any suggestions?
Solved! Go to Solution.
Hi,
try the below whether it works for your dataset.
If you have more columns to be included in the condition, you can try to add more into the below by using && function.
Rev for month CC =
MAXX (
FILTER (
'your table name',
'your table name'[acct] = "Total Income"
&& 'your table name'[month] = EARLIER ( 'your table name'[month] )
),
'your table name'[value]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Based on what I see on the screenshot, please try the below for creating a new column.
Rev for month CC =
MAXX (
FILTER ( 'your table name', 'your table name'[acct] = "Total Income" ),
'your table name'[value]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks! We're close, but i need the Income to be displayed for the respective month.
Your code will populate the maximum value for all months.
ie. for all Jan rows, i need Jan income, for Feb rows, I need Feb income etc.
Hi,
try the below whether it works for your dataset.
If you have more columns to be included in the condition, you can try to add more into the below by using && function.
Rev for month CC =
MAXX (
FILTER (
'your table name',
'your table name'[acct] = "Total Income"
&& 'your table name'[month] = EARLIER ( 'your table name'[month] )
),
'your table name'[value]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Excellent - Thank you! Exactly what I was looking for.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |