cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
AA622
Helper II
Helper II

Combine 2 values within the same column

Hello

 

I constructed a Sales Goal dashboard for the Sales team. We have a column that lists out the different Goal Types such as

Total Sales

Hospital Sales

Office Sales

Other Sales

 

This month they changed the Goals a bit and want to combine 2 of the Goal Types into 1. In this case it'll be Total Sales and Other Sales into one. How do I go about this? I know there are ways to combine values between 2 columns but how do I do so within the same column?

2 ACCEPTED SOLUTIONS
speedramps
Community Champion
Community Champion

It is bad practice is to use "implicit" measure.

Implicit measures are when you drag column names from the table to the report canvas.

 

It is best pratice to use "explicit" DAX measures ...

 

Total Sales    = SUM(filename["TotalSales])

Hospital Sales  = SUM(filename[HospitalSales])

Office Sales  = SUM(filename[OfficeSales])

Other Sales  = SUM(filename[OtherSales])

 

These are much easier to change when the goal post move ....

 

NewGoal = [Total Sales] + [Other Sales]

 

 I helped you, now plwase help me with kudos.

Click the thumbs up and accept as solution button. Thanks 😎

View solution in original post

v-kkf-msft
Community Support
Community Support

Hi @AA622 ,

 

Please create the new table and relationship.

 

Types = 
    {
        ("Hospital Sales", "Hospital Sales"),
        ("Office Sales", "Office Sales"),
        ("Combine Sales", "Total Sales"),
        ("Combine Sales", "Other Sales")
    }

vkkfmsft_0-1654845602139.png

vkkfmsft_1-1654845613283.png

vkkfmsft_2-1654845638424.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @AA622 ,

 

Please create the new table and relationship.

 

Types = 
    {
        ("Hospital Sales", "Hospital Sales"),
        ("Office Sales", "Office Sales"),
        ("Combine Sales", "Total Sales"),
        ("Combine Sales", "Other Sales")
    }

vkkfmsft_0-1654845602139.png

vkkfmsft_1-1654845613283.png

vkkfmsft_2-1654845638424.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

speedramps
Community Champion
Community Champion

It is bad practice is to use "implicit" measure.

Implicit measures are when you drag column names from the table to the report canvas.

 

It is best pratice to use "explicit" DAX measures ...

 

Total Sales    = SUM(filename["TotalSales])

Hospital Sales  = SUM(filename[HospitalSales])

Office Sales  = SUM(filename[OfficeSales])

Other Sales  = SUM(filename[OtherSales])

 

These are much easier to change when the goal post move ....

 

NewGoal = [Total Sales] + [Other Sales]

 

 I helped you, now plwase help me with kudos.

Click the thumbs up and accept as solution button. Thanks 😎

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors