Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi
How can i get a static table that isnt affected by filter slivers which gives me a 1 row per each device based on the highest view and date that occured.
Devices | Views | Date |
Mobile | 35 | 1/6/2020 |
Computer | 25 | 1/7/2020 |
Tablet | 20 | 1/2/2020 |
Tablet | 10 | 1/1/2020 |
Computer | 56 | 1/2/2020 |
Mobile | 21 | 1/3/2020 |
Fiinal Output would be:
Devices | Views | Date |
Mobile | 35 | 1/6/2020 |
Tablet | 20 | 1/2/2020 |
Computer | 56 | 1/2/2020 |
Solved! Go to Solution.
Hi, @Anonymous
According to your description,I think you can create a measure, then use it in filter pane.
Like this:
Measure =
IF (
VALUES ( 'Table'[Views] )
= MAXX (
FILTER ( ALL ( 'Table' ), [Devices] = SELECTEDVALUE ( 'Table'[Devices] ) ),
[Views]
),
1,
0
)
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description,I think you can create a measure, then use it in filter pane.
Like this:
Measure =
IF (
VALUES ( 'Table'[Views] )
= MAXX (
FILTER ( ALL ( 'Table' ), [Devices] = SELECTEDVALUE ( 'Table'[Devices] ) ),
[Views]
),
1,
0
)
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ok, gotcha. Try these measures:
Highest Value =
CALCULATE ( MAX ( 'Table'[Amt] ), TOPN ( 1, ALLEXCEPT ( 'Table', 'Table'[Devoce] ), CALCULATE ( MAX ( 'Table'[Amt] ) ), DESC ) )
Highest Date =
CALCULATE ( MAX ( 'Table'[Date] ), TOPN ( 1, ALLEXCEPT ( 'Table', 'Table'[Devoce] ), CALCULATE ( MAX ( 'Table'[Amt] ) ), DESC ) )
Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous in your output, you have given the wrong result for computer, anyhow add these two measures:
Highest Date = CALCULATE ( MAX ( 'Table'[Date] ), ALLEXCEPT ( 'Table', 'Table'[Devoce] ) )
Value on Highest Date =
VAR __date = [Highest Date]
RETURN
CALCULATE ( MAX ( 'Table'[Amt] ), ALLEXCEPT ( 'Table', 'Table'[Devoce] ), 'Table'[Date] = __date )
Change table and column name as per your model.
Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi, it is not based on highest date though i need it based off of highest VIEWS. And then be able to grab the data associated with the highest views.
User | Count |
---|---|
128 | |
108 | |
100 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |