This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have two different type datas. I need to create a new graphic by finding the new value between two of them. New table = Whole Sales - Retail.
Solved! Go to Solution.
Hi @altemural ,
i would create Measures.
Retail = CALCULATE(SUM('Table'[Value]), 'Table'[Type] = "Retail")
Whole Sales = CALCULATE(SUM('Table'[Value]),'Table'[Type] = "Whole Sales")
Other Sales = [Whole Sales] - [Retail]Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @altemural ,
Please check if this is what you want:
1. Add an Index column in Power Query.
2. Create a measure.
Measure =
VAR RetailIndex =
MAX ( 'Table'[Index] ) - 12
VAR WholeSalesValue =
CALCULATE (
MAX ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Index] = RetailIndex )
)
RETURN
IF (
MAX ( 'Table'[Type] ) = "Retail",
MAX ( 'Table'[Value] ) - WholeSalesValue
)
3. Create a Pie chart or other visuals.
For details, please check the attached PBIX file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @altemural ,
i would create Measures.
Retail = CALCULATE(SUM('Table'[Value]), 'Table'[Type] = "Retail")
Whole Sales = CALCULATE(SUM('Table'[Value]),'Table'[Type] = "Whole Sales")
Other Sales = [Whole Sales] - [Retail]Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 32 | |
| 31 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 56 | |
| 31 | |
| 27 | |
| 22 |