Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
I am super new to Power BI and DAX. Would like to see if anyone can help me with this.
I have a table called modsum_view which contains column FROMPSN and TOPSN.
The idea is having a slicer where the user will select a number to filter down to selection.
In SQL the query would be:
SELECT * FROM modsum_view
WHERE
FROMPSN <= 50020 AND 50020 <= TOPSN
*in the example above 50020 is what user selected in the slicer.
The table containing the data would then display only the data where 50020 exists in the FROMPSN/TOPSN range. (highlighed below)
This is the relationship model:
Tails[Tails] to Modsum_view[Frompsn]
and
Tails[Tails] to Modsum_view[Topsn] (inactive)
The Tails table has a column which contains all possible numbers that can be used for filtering down Modsum_view table (columns Frompsn and Topsn). It was generated using the what if / generatedseries
Solved! Go to Solution.
You may created a relationship between the slicer table and filtered table in one-many or one-one relationship, then use condition like Filtered[TOPSN] >= Related(Tails[Selectedtail]).
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Click Modeling-> New Table using DAX below and check if they can meet your requirement:
Filtered_Table = FILTER ( modsum_view, modsum_view[FROMPSN ] <= SELECTEDVALUE ( Table[selection] ) && modsum_view[TOPSN] >= SELECTEDVALUE ( Table[selection] ) )
Or
Filtered_Table = CALCULATETABLE ( modsum_view, modsum_view[FROMPSN ] <= SELECTEDVALUE ( Table[selection] ) && modsum_view[TOPSN] >= SELECTEDVALUE ( Table[selection] ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yuta-msft Thank you very much for helpign me.
I am trying to use the solution you suggested:
You may created a relationship between the slicer table and filtered table in one-many or one-one relationship, then use condition like Filtered[TOPSN] >= Related(Tails[Selectedtail]).
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |