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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
ssk_1984
Helper I
Helper I

Measure to show QOQ growth values between quarter values. show that as Tool Tip in current Quarter

Hi, 

 

Pleaes help me to create measure to show QOQ growth % between quarters vales and show it in current quarter as tool tip.

 

ssk_1984_0-1737563205191.png

QOQ Growth 4M in Qtr4 - Compared with Q3 108 M and Q4 112 M 

Date tables in related reference as well

 

2 ACCEPTED SOLUTIONS
johnt75
Super User
Super User

You can create a measure like

QoQ % =
VAR CurQuarter = [Revenue]
VAR PrevQuarter =
    CALCULATE ( [Revenue], PREVIOUSQUARTER ( 'Date'[Date] ) )
VAR Result =
    DIVIDE ( CurQuarter - PrevQuarter, PrevQuarter )
RETURN
    Result

and add that to the tooltip for the chart.

View solution in original post

Bibiano_Geraldo
Super User
Super User

Hi @ssk_1984 ,

In your date table add a new column to sort the quarter by this DAX:

Quarter_No = YEAR('Calendar'[Date]) & QUARTER('Calendar'[Date])

Make sure that this column the data type was set to Whole Number:

Bibiano_Geraldo_0-1737565792526.png

 

Now add another column for quarter-year by this DAX:

Year-Quarter = FORMAT([Date], "YYYY-Q")

 

Now create the QoQ Growth % Measure by this DAX:

QoQ Growth % = 
VAR CurrentQuarter = MAX('Calendar'[Year-Quarter])
VAR CurrentQuarterValue = 
    CALCULATE(
        SUM(SalesOrderLines[Sales Amount]),
        'Calendar'[Year-Quarter] = CurrentQuarter
    )
VAR vPreviousQuarter = 
    CALCULATE(
        MAX('Calendar'[Year-Quarter]),
        DATEADD('Calendar'[Date], -1, QUARTER)
    )
VAR PreviousQuarterValue = 
    CALCULATE(
        SUM(SalesOrderLines[Sales Amount]),
        FILTER(
            ALLSELECTED('Calendar'),
            'Calendar'[Year-Quarter] = vPreviousQuarter
        )
    )

RETURN
    IF(
        ISBLANK(PreviousQuarterValue),
        BLANK(),
        DIVIDE(
            CurrentQuarterValue - PreviousQuarterValue,
            PreviousQuarterValue,
            0
        )
    )

 

Now put the year quarter in x-axis and sales in Y-axis and QOQ % in tooltips

Bibiano_Geraldo_1-1737567106435.png

Your final result should look like this:

Bibiano_Geraldo_2-1737567165226.png

 

View solution in original post

6 REPLIES 6
ssk_1984
Helper I
Helper I

Values is showing 0% for every quarter values...as tool tip

ssk_1984_0-1737605724842.png

 

Calender table what i have is

ssk_1984_0-1737606243223.png

 

Bibiano_Geraldo
Super User
Super User

Hi @ssk_1984 ,

In your date table add a new column to sort the quarter by this DAX:

Quarter_No = YEAR('Calendar'[Date]) & QUARTER('Calendar'[Date])

Make sure that this column the data type was set to Whole Number:

Bibiano_Geraldo_0-1737565792526.png

 

Now add another column for quarter-year by this DAX:

Year-Quarter = FORMAT([Date], "YYYY-Q")

 

Now create the QoQ Growth % Measure by this DAX:

QoQ Growth % = 
VAR CurrentQuarter = MAX('Calendar'[Year-Quarter])
VAR CurrentQuarterValue = 
    CALCULATE(
        SUM(SalesOrderLines[Sales Amount]),
        'Calendar'[Year-Quarter] = CurrentQuarter
    )
VAR vPreviousQuarter = 
    CALCULATE(
        MAX('Calendar'[Year-Quarter]),
        DATEADD('Calendar'[Date], -1, QUARTER)
    )
VAR PreviousQuarterValue = 
    CALCULATE(
        SUM(SalesOrderLines[Sales Amount]),
        FILTER(
            ALLSELECTED('Calendar'),
            'Calendar'[Year-Quarter] = vPreviousQuarter
        )
    )

RETURN
    IF(
        ISBLANK(PreviousQuarterValue),
        BLANK(),
        DIVIDE(
            CurrentQuarterValue - PreviousQuarterValue,
            PreviousQuarterValue,
            0
        )
    )

 

Now put the year quarter in x-axis and sales in Y-axis and QOQ % in tooltips

Bibiano_Geraldo_1-1737567106435.png

Your final result should look like this:

Bibiano_Geraldo_2-1737567165226.png

 

Thank you very much

johnt75
Super User
Super User

You can create a measure like

QoQ % =
VAR CurQuarter = [Revenue]
VAR PrevQuarter =
    CALCULATE ( [Revenue], PREVIOUSQUARTER ( 'Date'[Date] ) )
VAR Result =
    DIVIDE ( CurQuarter - PrevQuarter, PrevQuarter )
RETURN
    Result

and add that to the tooltip for the chart.

Thank you for you help, i will test and accept this solution

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.