Forum Discussion
Saxon10
Post Prodigy
4 years agoHow do I combine two visuals reports into one Power BI visual report
Hi, I have the following columns are Id, Code, Result1 and Result2 in data table. The same id and code has two different status. I am currently using two different visual for same id and code...
- 4 years ago
Create a new table either via the query editor or a DAX calculated table.
As a calculated table, for example:
Slicer = DATATABLE ( "Result", STRING, {{"Result 1"}, {"Result 2"}} )See attached.
AlexisOlson
Super User
4 years agoDefine a new table Slicer with a single column "Result 1" and "Result 2".
Then you can define a measure
VarResult =
SWITCH (
SELECTEDVALUE ( Slicer[Result] ),
"Result 1", SELECTEDVALUE ( Data[Result 1] ),
"Result 2", SELECTEDVALUE ( Data[Result 2] )
)
Saxon10
Post Prodigy
4 years ago
Can you please advise one more thing here, I would like achieve the same result by using New calculate column instead of measure. Is that possible?
- So I can use the Var results in row and column for count and additional reporting purposes.
- The current Var results unable to use count
- AlexisOlson4 years ago
Super User
A calculated column cannot read a slicer, so no, there isn't an equivalent for a calculated column.
- Saxon104 years ago
Post Prodigy
Thanks for your reply and advise.