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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
altemural
Regular Visitor

Creating a new data

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.

Resim2.jpgResim1.jpg

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

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.

 

 

Did I answer 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


View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

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.

retail.PNG

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.

mwegener
Most Valuable Professional
Most Valuable Professional

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.

 

 

Did I answer 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


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors