We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
How to create Visual which will depends on Parameter setted in Query editor?
Measure = CALCULATE (sum(Table1[Pre_ska_1]))
but if Parameter setted to 2, measure must be
Measure = CALCULATE (sum(Table2[Pre_ska_2]))
PBI has something like INDIRECT() excel function? So i can In table dinamically change names which in measure interpreted like columns names
Measure = CALCULATE (sum(INDIRECT(Table1[DinamicName])))
So if Table1[DinamicName] = "Table2[Pre_ska_2]"
measure
Measure = CALCULATE (sum(INDIRECT(Table1[DinamicName]))) sum Table2[Pre_ska_2] values
Solved! Go to Solution.
You could try to below steps.
ParameterMeasure = SELECTEDVALUE('Parameter1 (2)'[Column1])
Measure =
var __parameter=SELECTEDVALUE('Parameter1 (2)'[Column1])
var __selectedColumn=SELECTEDVALUE('Table'[Column])
var __Table1=CALCULATE(SUM('Table'[Sales]),'Table'[Column]="Table1")
var __Table2=CALCULATE(SUM('Table'[Sales]),'Table'[Column]="Table2")
var __result=IF(__parameter=1&& __selectedColumn="Table1",__Table1,IF(__parameter=2&&__selectedColumn="Table2",__Table2,BLANK()))
return __result
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
You could try to below steps.
ParameterMeasure = SELECTEDVALUE('Parameter1 (2)'[Column1])
Measure =
var __parameter=SELECTEDVALUE('Parameter1 (2)'[Column1])
var __selectedColumn=SELECTEDVALUE('Table'[Column])
var __Table1=CALCULATE(SUM('Table'[Sales]),'Table'[Column]="Table1")
var __Table2=CALCULATE(SUM('Table'[Sales]),'Table'[Column]="Table2")
var __result=IF(__parameter=1&& __selectedColumn="Table1",__Table1,IF(__parameter=2&&__selectedColumn="Table2",__Table2,BLANK()))
return __result
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@Analitika , not very clear .
refer if these can help
Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M
or
I need not depending on slicer,but depending on Parameter !!!
User | Count |
---|---|
62 | |
59 | |
46 | |
35 | |
31 |
User | Count |
---|---|
86 | |
71 | |
57 | |
51 | |
46 |