Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
i want to create a PVM watefall graph as shown below.
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.
waterfall graph also need hierarchy option to drill down/up between Product group name,Product sub group name
Thanks in advance.
Solved! Go to Solution.
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.
2. Create a start and end table using Enter Data.
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])
)
)
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.
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.
2. Create a start and end table using Enter Data.
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])
)
)
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |