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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
annjoseph
Regular Visitor

PVM waterfall graph

i want to create a PVM watefall graph as shown below.

annjoseph_0-1598511202326.png

 

I have Fact table,Date Dimension table,Product Dimension table.Product dimension table has Product group name,Product sub group name and product id.

I have crated measures for Price variance, Volume variance and Mix variance and creaeted waterfall graph using switch function.but it is not showing starting and ending pillers.only showing variance between them.given below.

annjoseph_1-1598511202330.png

 

waterfall graph also need hierarchy option to drill down/up between Product group name,Product sub group name

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @annjoseph ,

 

We can create two tables and a measure to meet your requirement.

 

1. Create unique name column table and add an index column using Power Query Editor.

 

PV1.jpg

 

2. Create a start and end table using Enter Data.

 

PV2.jpg

 

3. Create a measure, put the measure in values, put the [Start] in category, put the [name] in breakdown.

 

PVM = 
SWITCH (
    SELECTEDVALUE ( 'Table (2)'[Sort] ),
    1, SWITCH (
        SELECTEDVALUE ( 'name table'[name] ),
        "A", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="A")),
        "B", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="B")),
        "C", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="C")),
        "D",-1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="D")),
        0
    ),
    2, SWITCH (
        SELECTEDVALUE ( 'name table'[name] ),
        "A", 0,
        "B", 0,
        "C", 0,
        "D",0,
        SUM('Table'[value])
    )
)

 

PV3.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data or describe the fields of each tables and the relations between tables simply?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @annjoseph ,

 

We can create two tables and a measure to meet your requirement.

 

1. Create unique name column table and add an index column using Power Query Editor.

 

PV1.jpg

 

2. Create a start and end table using Enter Data.

 

PV2.jpg

 

3. Create a measure, put the measure in values, put the [Start] in category, put the [name] in breakdown.

 

PVM = 
SWITCH (
    SELECTEDVALUE ( 'Table (2)'[Sort] ),
    1, SWITCH (
        SELECTEDVALUE ( 'name table'[name] ),
        "A", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="A")),
        "B", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="B")),
        "C", -1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="C")),
        "D",-1 * CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[name]="D")),
        0
    ),
    2, SWITCH (
        SELECTEDVALUE ( 'name table'[name] ),
        "A", 0,
        "B", 0,
        "C", 0,
        "D",0,
        SUM('Table'[value])
    )
)

 

PV3.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data or describe the fields of each tables and the relations between tables simply?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

amitchandak
Super User
Super User

@annjoseph , I doubt I got it. Refer if this can help

https://www.youtube.com/watch?v=7DW5wD2j1xw

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.