Forum Discussion

hans3400's avatar
hans3400
Icon for Helper I rankHelper I
3 years ago

Difference between two columns in column chart in percentage

Hi

 

I've tried to read through a couple of posts on this matter but can't seem to find out if this is doable. 

 

What I want to do is to show the difference between two coulumns in a column chart i percentage. 

 

I've found this example from google that shows how it would look like in excel. Do someone know if this is doable in BI in any way? Maybe you guys know a simple solution to the question. 

 

 

This is my ultra simple table:

Date          Downloads

Aug/2221093
Sep/2222345
Oct/2236509
Nov/22 
Dec/22 
Jan/23 
Feb/23 
Mar/23 

 

Thanks in advance

 

BR

Joachim

2 Replies

  • hans3400 , Use a MOM measure using time intelligence and date table. Use a Clustered Bar Line visual and ise Change % on line

     

    MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
    last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
    last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
    MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
    last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
    last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))

     

    MOM = divide([This month]-[Last Month], [Last Month])

     

    Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
    Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

     

    Power BI — Month on Month with or Without Time Intelligence
    https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
    https://www.youtube.com/watch?v=6LUBbvcxtKA

    • hans3400's avatar
      hans3400
      Icon for Helper I rankHelper I

      I will give it a try. 

       

      Thank u so much for your thorough response!