March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi!
I have a Line and Clustered Column Chart where I show Total Units Sold (column values) and Avg Sale (line values). I have a year series to allow comparison from 2013 to 2017-forward.
To be able to get my different series, I have a calculated column for each year. The thing is, I do not want to have to come back to my report on January 1st 2018 (and 2019, and 2020...) to create a new column.
For the columns, it is easy as I simply need to drag the "year" field into Column Series.
Any idea on how can I get a Line Series for my report?
Thanks!
Hi @Anonymous,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale
Thank you for your answer. The goal of my request was to avoid to have to write custom dimensions for each year, as I do not want to have to come back to modify the file every year to add the new dimensions.
For the Total Sales, it is easy as I just have to have [Total Sales] in the Column values field, and [Year] in the Column series field. I wanted to know if I could get something similar for the [Average Sale] in the Line values field.
I guess this is an enhancement idea. Thanks!
Hi @Anonymous,
Why not using a measure? If you have separate tables for every year, you can try a measure like this:
2018 Avg Sales = average('Sales2018'[Amount])
If your data is in one big table, you can try a measure like this:
2018 Avg Sales = CALCULATE ( AVERAGE ( 'Sales'[Amount] ), YEAR ( 'Calendar'[date] ) = 2018 )
Best Regards!
Dale
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |