Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi gurus,
Please advise what's the best solution to pass the selected date to a table?
I am able to get the result of the selected value as date however it doesn't seem to be passing it correctly.
@Anonymous
I confused with the table and expected output. This is what I have now. I create a distinct table as the slicer, then create a variance measure.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Hi Paul,
Thanks for simulating my model. In the pbix that you've created, the variance was computed based on the "date" column. My requirement is to compute the variance based on the reporting date on each date. There should only be 1 variance column as per my output.
So if we go back to my output, in my slicer if I select 09/05 & 06/05.
You will see there that there is a variance shown as only 1 column; i.e., it is subtracting the 9/05/2021 value - 6/05/2021 value.
***** Note: I need these dates to be dynamic in such a way that if I select from my slicer 2 dates, it will reflect my columns as those selected dates and the variance should automatically subtract reporting date 1 - reporting date 2.
Thank you.
@Anonymous
Selection made from the report slicers is not visible to the data model when you create a table.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy,
Thanks for your reply. You've got the same answer as @amitchandak where I can't achieve what I'm trying to do with the table. Now I'm back at square 1 where I needed to get the variance of the the data on the rows as per the selected values in the slicer. Any suggestion for this?
@Anonymous , example
measure =
var _tab = summarize(filter(all(Table), Table[customer] in allselected(Table[Customer])),Table[product])
return
calculate(coutrows(Table), filter(all(Table), Table[product] in _tab))
Sorry, I'm still confused. Where do I pass my Selected Day1 using the var table?
@Anonymous , You can not use slicer value in new calculated table.
You can use slicer value only in VAR Table, inside a measure
Hi @amitchandak,
Thanks for your quick reply.
Is it possible for you to to give an example in the context to what I am trying to build please? I haven't tried using var table.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.