March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi im new to power BI, and i was wondering if i am able to use the SELECTEDVALUE value to call out the column of the table with the same name as the value given? In a way, performing this action :
Pleaseee help 🙂
Solved! Go to Solution.
Hi @Anonymous
do you mean you want to use [User Chosen] as selected column name? if yes, actually Graph[User Chosen] this is not supported in desktop.
you can take a workaround to solve the question. you can try IF() or Switch() like bellow.
Measure =
var _a= SELECTEDVALUE('filter'[filter])
return IF(_a="Column1", SUM('Table'[Column1]),IF(_a="Column2",SUM('Table'[Column2])))
hope it helps.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
do you mean you want to use [User Chosen] as selected column name? if yes, actually Graph[User Chosen] this is not supported in desktop.
you can take a workaround to solve the question. you can try IF() or Switch() like bellow.
Measure =
var _a= SELECTEDVALUE('filter'[filter])
return IF(_a="Column1", SUM('Table'[Column1]),IF(_a="Column2",SUM('Table'[Column2])))
hope it helps.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Understood! So there really isnt any way to automate this measure in desktop?
Hi @Anonymous
yes, that's really impossible. in Dax expression, the format is fixed, 'Table'[Column]. it can not be dynamic.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , seem like [User Chosen] is a measure , if so
CALCULATE(SUMX(Graph,[User Chosen]), Graph[SnapMonth] = [User Selection])
or
CALCULATE(Countx(Graph,[User Chosen]), Graph[SnapMonth] = [User Selection])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |