Power Bi DAX - sum with filters - powerbi

I am a Power Bi beginner, trying to solve the following issue.
I have got the following table:
enter image description here
I would like to get this result :
enter image description here
Basically the new measure should show sums for each project forecast.
Any help will be appreciated.

To get the final table you have to choose Table on Visualizations and organize columns in this way (see the screenshot). Then right click on Forecast in Values and check Don't summarize.
If it doesn't help, please check the data types.

Related

Power BI analyse tabel in Excel export

I have a question about the function "Analyse in Excel" or "Analyse in Excel" in German when a PBI (Power BI) report has been published.
I read in a flat table in PBI and create some measures in PBI. Basically, it's about account numbers and the limits. A calculation is not necessary or possible here.
If I now want to analyse the data in Excel Pivot Table, I can only display the measures as values. An analysis of account numbers and limits is not possible, as limits are not measures.
What do I have to do to be able to select original data as values?
Thank you very much for your feedback and best regards
Andi
Try adding a measure from the table you are wanting to analyze and then double clicking on the measure value. This will pop open a new sheet and drillthrough to the rows detail behind that cell. It may give you the detail you are wanting. I also believe it will give you proper data types on columns so you can do Excel analysis.
Sorry! I do not get it.
To make it clear - I stripped down a very easy example of my problem:
I'm loading a flat file with account, currency, date and balance information.
The respective Power BI looks like:
After publishing the report into the cloud I would analyse the data within Excel
However, when I try to bring the "balance" information as value in, I'm receiving the following message:
The balance is not a measure in Power BI. Any idea what I can do?
Thank you and best regards
Andi

Custom Column - IF Then Statement in Power BI

I want to add a custom column in Power BI to return a value based on another column. In Excel I would write the formula as IF(D2="DR",C2,-C2).
In Power BI I tried writing the following IF([DR/CR]="DR" THEN [Amount] ELSE [Amount]*-1) this doesn't work so I then tried if([DR/CR]="DR",[Amount],-[amount])) when I wrote this it accepted it but I received the following error "Expression.Error: The name 'IF'; wasn't recognized. Make sure it's spelled correctly.
Basically the amounts shown in the "AMOUNT" column are all debit values and the DR/CR column indicates if it is a debit or credit. I would like to figure out a way to show the amounts as debit and credits so I can complete calculations. Thank you in advance.

Powerbi Matrix issues with the value field

I have a problem with Powerbi I can't seem to fix. If the answer is obvious i am sorry but i am just starting out with Powerbi.
We are trying to make a dashboard that will show if a coworker is available or not based on a code 1 -3).
We check their availability per ISOWeek. If they don't have work that week they get code 1, when they have work code 2 etc.
These codes show up the right way in SQL but when I want to add them in my matrix table and have the coworker names on the rows, the ISOWeek on the columns and then when i add the Code in values Powerbi wants to show the total, total(distinct), first or last.
The problem is it wont use the code it got per isoweek. Is there a solution for this?
Thanks in advance!
What is should look like in the matrix:
Fixed it by giving the columns: don't Summarize on the modeling tab. Then I gave the code column the minimum value for each week.

My DAX Measure for Custom Conditional Formatting In Power BI is not clickable

Please I need help with my Power BI custom conditional formatting. I created a DAX measure to help me color names of employees that are found in more than one team in day in Power Bi Matrix.
I tried applying the measure in conditional formatting but the measure is grayed out and not clickable. the image is attached below
The measures for formatting
The DAX measure is below.
Technician Grouping = IF(SELECTEDVALUE('Technicians Name'[Names]) IN
ALLSELECTED('view_register_teams'[team_number]), "#500805")
Thank you.
In the image you have posted, use the "Rules" option in place of "Field Value"

POWER BI - GROUPBY() and SUMX()

Hello everyone I can't get why my measure or column (tried with both) doesn't work. I am beginner in Power BI (Advanced in TIBCO spotfire)
Mesure 1 = GROUPBY(VUE_TACHES;VUE_TACHES[PREF];VUE_TACHES[ACTIVITE];"group_by_gsp_activite";SUMX(CURRENTGROUP();VUE_TACHES[REEST]))
It's telling me that multiples colonnes can't be change in scalar value. Does someone have a clue? I looked on the internet and tried different formula but i couldn't do it.
I believe the answer is that you need to create a new table, instead of trying to add a column or measure.
Try this. Click on the "Modeling" tab and then on "New Table".
Then enter your code in the formula bar:
Table = GROUPBY(VUE_TACHES,VUE_TACHES[PREF],VUE_TACHES[ACTIVITE],"group_by_gsp_activite",SUMX(CURRENTGROUP(),VUE_TACHES[REEST]))
You should see this result: