Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have some quick measurements and want to make a temporary table like this one:
Fullname is a selected field based on filters, the bodycomps are calculated fields. How can I make a temporary table of this to add new calculations on it?
Solved! Go to Solution.
Hi @DionTN ,
Are you instead referring to calculated table? There are more than one ways to do this in Power BI. An example where existing measures are used:
calctable =
ADDCOLUMNS (
SUMMARIZE ( FILTER ( 'table', 'table'[column] = "criteria" ), 'table'[column] ),
"Measure 1", [Measure 1],
"Measure 2", [Measure 2]
)
Proud to be a Super User!
Hi @DionTN ,
Are you instead referring to calculated table? There are more than one ways to do this in Power BI. An example where existing measures are used:
calctable =
ADDCOLUMNS (
SUMMARIZE ( FILTER ( 'table', 'table'[column] = "criteria" ), 'table'[column] ),
"Measure 1", [Measure 1],
"Measure 2", [Measure 2]
)
Proud to be a Super User!
You can use VAR but depending on how you use it, it may or may not result your desired result. See samples below:
Proud to be a Super User!
The table is working, only the filter is not working. Is there anything i can do?
Bedrijf =
var selectie = SELECTEDVALUE(company[Name])
return
IF(isblank(selectie),"Geen bedrijf geselecteerd",selectie)
The company selection, which is made in a seperate calculation is unfortunately not working.
Bedrijf =
var selectie = SELECTEDVALUE(company[Name])
return
IF(isblank(selectie),"Geen bedrijf geselecteerd",selectie)
I dont see any difference between the two measures in your post. Also there is a second argument in SELECTEDVALUE that returns an alternate result if the original is blank.
SELECTEDVALUE ( 'Table'[Column], "alternate result" )
Proud to be a Super User!
Im sorry, i had to add this script: This is not filtering the company correct.
calctable =
ADDCOLUMNS (
SUMMARIZE ( FILTER ( usermeasurements, usermeasurements[users.company.Name] = [Bedrijf]),usermeasurements[Fullname]) ,
"Measure 1", [selectFirstDate],
"Measure 2", [selectLastDate], "Measure 3", [BodyComp1], "Measure 4",[BodyComp2]
)
is it also possible to ad a var in this table? @danextian
calctable =
ADDCOLUMNS (
SUMMARIZE ( FILTER (usermeasurements, usermeasurements[users.company.Name] = [Bedrijf]), usermeasurements[Fullname] ),
"Measure 1", [FirstValue],
"Measure 2", [LastValue]
)
Now i tried this without succes:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |