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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gunicotra
Helper II
Helper II

buble chart with date on X axes

Hi to all,

I have 5 products and I would like to plot on a scatter/buble chart the estimated time when each of them will hit the specific revenue target (i.e.: for product 1, the estimated date is 15/04/2021, for prod.2 the estimated date is 28/04/21 etc). The Y-Axis could for example be the rolling product revenue while, if necessary, the buble dimension could be the target.
I used a simple scatter chart, with a column "Products" and a measure "Estimated.Date.Target" which has the estimated dates of reaching the target, per products. 

However, as soon as I droped "Estimated.Date.Target" on "X Axis", I had the following error message:

 

gunicotra_0-1617197086690.png

 

I tried also using other scatter/buble visuals but I always had problem in showing what I have in mind!

Can anyone help me?

Thanks a lot in advance!

G

 

 

1 ACCEPTED SOLUTION

Hi @gunicotra ,

Seems like the Estimated.Date.Target is a measure, including measure [Time.Target] and measure [MaxDate].

In Scatter chart, measure could not be put in X-axis, the X-axis must be a meaningful column, not a measure.

 

You can try to convert all your measures to calculated columns and then put it in the X-axis.

 

In addition, I have noticed that you used VALUES() in the formula, if you have different year values in [Year] column, the visuals would still get error.

 

Supposing the max date is calculated for each year, you can create the column like this:

MaxDate = CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Year]))

 

Best Regards,
Community Support Team _ Yingjie Li
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

4 REPLIES 4
amitchandak
Super User
Super User

@gunicotra Scatter visual can only have one axis taken an unsummarized measure that is x-axis. Assuming y is already a number.

Can share the formula for measure Estimated.Date.Target

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hai amitchandak!

sure:

Estimated.Date.Target = [MaxDate]+[Time.Target], where:
 
Time.Target = round(DIVIDE(([TargetFG]-[FG_YEAR]),[FG.Last.Week.])*7,0) --> gives the remaining days to reach the revenue target ("TargetFG"), starting from the last revenue update ("FG_YEAR"), at a FG.last.Week weekly revenue production rate.
 
MaxDate = calculate(MAX('TABLE'[DATA_IN]),'TABLE'[YEAR]=VALUES('TABLE'[YEAR])) --> gives the last day of the product revenue in the data table.
 
 

Hi @gunicotra ,

Seems like the Estimated.Date.Target is a measure, including measure [Time.Target] and measure [MaxDate].

In Scatter chart, measure could not be put in X-axis, the X-axis must be a meaningful column, not a measure.

 

You can try to convert all your measures to calculated columns and then put it in the X-axis.

 

In addition, I have noticed that you used VALUES() in the formula, if you have different year values in [Year] column, the visuals would still get error.

 

Supposing the max date is calculated for each year, you can create the column like this:

MaxDate = CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Year]))

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi! perfect thanks. Your solution worked for me 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.