How to create measure out of column

+2 votes
Hi,

Need help in the problem faced in PowerBi.

I have ProfitValue as measure in one table and LossValue as column in another table.

Now I need to add ProfitValue and LossValue.

How can convert the LossValue column as measure? Any logic would help!!
Aug 14, 2019 in Power BI by anonymous
• 230 points
958 views
Aggregate the column to create a measure such as a sum, average, etc.

A column can be converted to measure by aggregating the column.

sales column can become measure using sum(sales).

1 answer to this question.

0 votes

To convert the LossValue column into a measure in Power BI, you can create a new measure that calculates the sum of the LossValue column. Here's the logic you can use:

  1. Navigate to the table containing the LossValue column.
  2. Click on "Modeling" in the top menu.
  3. Click on "New Measure" from the ribbon.
  4. Enter a name for your new measure (e.g., TotalLossValue).
  5. In the formula bar, enter the following DAX formula:


DAX

Copy code

TotalLossValue = SUM('TableName'[LossValue])

Replace 'TableName' with the name of your table containing the LossValue column.

  1. Press Enter to confirm the formula.

Now, you should have a new measure called TotalLossValue that calculates the sum of the LossValue column. You can use this measure along with your ProfitValue measure to calculate the total profit or loss in your Power BI reports.

Read Related FAQ

How to create action button in Power BI

answered Apr 29 by anonymous
• 1,420 points

Related Questions In Power BI

0 votes
0 answers

How to create a custom column for comparing between of 2 numbers?

Hi How do I create a custom ...READ MORE

Jun 28, 2019 in Power BI by Phalguni
• 1,020 points
676 views
0 votes
3 answers

How to create final table based on Joins of two tables in power BI?

To do so, follow these steps: From the ...READ MORE

answered Dec 16, 2020 in Power BI by Gitika
• 65,770 points
56,068 views
0 votes
1 answer

How to Convert measure to calculated column?

Hi, I have created a new measure using ...READ MORE

answered Jul 18, 2019 in Power BI by Avantika
• 1,520 points
6,369 views
0 votes
0 answers

How to count of category values in a column?

How to count of category values in ...READ MORE

Oct 30, 2019 in Power BI by ch
• 3,450 points
936 views
0 votes
1 answer

How to create a Measure using Power BI DAX?

The following steps make your task simple ...READ MORE

answered Oct 27, 2020 in Power BI by Gitika
• 65,770 points
1,048 views
0 votes
1 answer
0 votes
1 answer

Add Column Count_of_people across two tables to get the count of people from a city.

Hi Anitha, 1. Merge both tables, using City ...READ MORE

answered Mar 22, 2019 in Power BI by Cherukuri
• 33,030 points
1,232 views
0 votes
1 answer

How to show a color bar even when no value is present or value is 0?

To display a color bar even when ...READ MORE

answered Nov 28 in Power BI by anonymous
• 1,420 points
650 views
0 votes
1 answer

How to Split Columns in Power BI?

Splitting columns in Power BI using the ...READ MORE

answered Jan 6 in Power BI by anonymous
• 1,420 points
917 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP