Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
the following problem is part of a bigger, much more complex problem, so please dont ask for the sense in the model. It has to be that way because of the bigger context which would take much more text to explain.
Situation as follows:
i have a table Facts
ID | Value | From | to | Connect |
A | 1 | 01.01.2023 | 10.01.2023 | 1 |
A | 2 | 10.01.2023 | 31.01.2023 | 1 |
B | 1 | 01.01.2023 | 10.01.2023 | 1 |
B | 2 | 10.01.2023 | 20.01.2023 | 1 |
B | 3 | 20.01.2023 | 31.01.2023 | 1 |
And I have a timetable like this:
Date | Connect |
01.01.2023 | 1 |
02.01.2023 | 1 |
... | ... |
30.01.2023 | 1 |
31.01.2023 | 1 |
Both tables are connected over the two connect columns, so every row is connected to every row.
There is a slicer with Date in it and single select.
What i want to achieve is a measure, that takes into account which date ist selected in the slicer and then filters a visual depending wheter the row is actual (means >= From and < To) or not.
So for example if i select the 21.01.2023 then the resulting facts should look like this:
ID | Value | From | To | Connect |
A | 2 | 10.01.2023 | 31.01.2023 | 1 |
B | 3 | 20.01.2023 | 31.01.2023 | 1 |
I need the timetable, because this logic is applied to other tables at the same time too. So i cannot use a slicer on the Facts table itself or something like that. Other aspects, like how tables are connected, could be changed eventually.
Any thoughts on this? thank you so much
Thanks for your replies
@foodd you can see a sample pbix in the first answer. Unfortunately Im not sure if I can do it the way it is done there. There all rows are multiplied by the amount of dates involved. This is ok for a exaple like this. @Ashish_Mathur , how does this scale with a million rows in it?
Not sure. Try that yourself.
What I wanted to say is that i cannot do it that way. But thanks for your effort though 🙂
This is difficult to visualize the state. Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
99 | |
38 | |
37 |
User | Count |
---|---|
157 | |
121 | |
73 | |
73 | |
63 |