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:
Related
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.
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.
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.
I have a single table in Power BI. There are no other tables being used, everything is in 1 table.
When I drill down, I don't get any results to come back despite having numbers in my Matrix Visual.
Any idea why this might be?
Select one of the visuals where the drill through is working.
On the list of filters off to the right, put whatever column(s) your visual is using as a filter.
This should solve everything.
I am trying to get the first 4 digits from a string from a table in Power BI. The connection is a live connection / Direct which does not allow me to edit the query. Also, I am unable to create a new column. So I have to stick with creating a new Measure.
Now, I am using the following formula to get what I need.
LocationCd = mid(vw_DW_Contracts[ContractNumber],1,5)
but, this is not working a the vw_DW_Contracts table cannot be used in a measure. Is there a workaround to such problem?
I do not have access to the analysis service so cannot make any modifications in the source.
Please help.
Thanks
but, this is not working a the vw_DW_Contracts table cannot be used in a measure.
I'm not sure what you mean by this, but I'm guessing the message you see is telling you that measures expect an aggregation. The formula you posted would be great as a calculated column where it can be evaluated row by row. Measures are aggregations over multiple rows.
If you are trying to make a new field that is the location code that can be used in visuals on a categorical axis, this should be a column rather than a measure. You could write a measure to show a location cd using something like LASTNONBLANK (mid(vw_DW_Contracts[ContractNumber],1,5), 1) but I doubt that is what you want.