Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bsheffer
Continued Contributor
Continued Contributor

replace calculated column with measure

I need to re-bin a calculated column ("1-10" combined with "11-20" to becomes "1-20" and so forth but since I'm connected to a published dataset I cannot create a new calculated column, just measures.  I need to use this measure as the column series in a bar graph (but I think it will only take columns?) so it will need to be able to aggregate by count of accounts.  Is this possible?

1 ACCEPTED SOLUTION

Hi @bsheffer ,

 

v-lionel-msft_0-1597889143080.png

'Column series' label can not add a measure, so you need to remodel in the original dataset, and then reconnect this dataset in the new .pbix file.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

type, account, date_opened, age_of_account

house, 11, 2020-01-01, "1-30 days" -> less than 70 days

business, 12, 2020-01-30, "1-30 days" -> less than 70 days

house, 13, 2020-03-05, "60-70 days" -> less than 70 days

house, 14, 2020-05-05, > "than 70 days" -> more than 70 days

 

age_of_account is the calculated bin column

want to change the bins as listed

and then want to put into line and stacked column chart with

 

month(date_opened) as the shared axis

age_of_account as the column series

count of accounts as the column values

 

however it isn't letting me put the measure in the column series position.

I don't have the option to create a table or a calculated column

Hi @bsheffer ,

 

v-lionel-msft_0-1597889143080.png

'Column series' label can not add a measure, so you need to remodel in the original dataset, and then reconnect this dataset in the new .pbix file.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi,

I really do not understand.  Share data in a format that can be pasted in an MS Excel workbook.  Also, show the expected result clearly in a Table format.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
parry2k
Super User
Super User

@bsheffer as you already know that you can only create measures and unfortunately cannot use measure directly for visual  on x-axis etc. Two possible ways:

 

- create bins in the original dataset (preferred)

- create a summarize table with the new bins

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

bsheffer
Continued Contributor
Continued Contributor

how would I create a summarized table to do the same job?  Under modelling I only have highlighted new measure and quick measure.  If I can't use the measure in the column series then I can't put the summarized table in the measure.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.