cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
AriehEdelson
Frequent Visitor

Trying to compare years in review monthly using various charts

Hi PBI community,

I am trying to compare three separate years of data in mostly line and bar graphs to show the differences after reviewing each year in detail on other dashboards. Unfortunately each graph I make will only give detailed information on one of the years (never the same year on different graphs) and the other two are sum totals of the entire year. So lets say one bar graph says for category "Operating" 200k and 1M and 1M, next one over "Teaching" 350k and 1M and 1M, and so on. Or in the case of a line graph for the year, one year will go up and down month to month but the other two are flat totals at the top.
Now each yeah has a payment date category and I have tried all of them, none of them, brought in a new data set that encompasses all three and I either get just blank graphs, one varied out of three, or all flat.

 

Please help! Thanks in advance.

 

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @AriehEdelson ,

Can you please share some sample data and your expected results? Then we will understand clearly about your request.

 

Please see this post regarding How to Get Your Question Answered Quickly: 

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
masonlee01
Regular Visitor

You probably need to use the CALCULATE with the time intelligence functions for your years.  One measure for each year and additional measures for the differences between.


Let's say [cost] is a measure that adds up the cost and assume you have a date table called calendar.  Here are some examples.  Note that you need to be mindful of what date is filtered at report, page & visual level; I often times set the page level filter at In This Year.

 

PY COST = calculate([cost],dateadd('calendar'[Date],-1,YEAR)) will get you last year's sales
YTD COST= CALCULATE([COST],DATESYTD('calendar'[Date]))
PYTD /COST= CALCULATE([YTD COST], SAMEPERIODLASTYEAR('calendar'[Date]))
Diff COST YTD vs PYTD = [YTD COST]-[PYTD COST]
Tad17
Solution Sage
Solution Sage

Can you post a screen shot?

 

Notice the blue graph at the bottom being varied and orange and dark blue are totals of the year.

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors