The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table with the values "disease" and "filtered patient table". Filter Patient Table is a measure. This measure is defined as
DEFINE
MEASURE 'PATIENT'[FILTERED PATIENTS TABLE] =
(/* USER DAX BEGIN */
COUNTROWS(PATIENT)
/* USER DAX END */)
VAR __ApplyFilterSQDS0 =
TOPN(
50,
SUMMARIZECOLUMNS(
'Diagnosis'[disease],
"FILTERED PATIENTS TABLE", 'PATIENT'[FILTERED PATIENTS TABLE]
),
[FILTERED PATIENTS TABLE],
0
)
EVALUATE
TOPN(
501,
SUMMARIZECOLUMNS(
'Diagnosis'[disease],
__ApplyFilterSQDS0,
"FILTERED PATIENTS TABLE", 'PATIENT'[FILTERED PATIENTS TABLE]
),
'Diagnosis'[disease],
0
)
ORDER BY
'Diagnosis'[disease] DESC
Please help!
Solved! Go to Solution.
Hi
Please create the following measures:
Ranks = rankx(all(patient[disease]),[FILTERED PATIENTS TABLE])
top 50 := IF(Ranks <= 50,[FILTERED PATIENTS TABLE])
Remove your top 50 from the visual filter
Substitute measure FILTERED PATIENTS TABLE from the visual values with the top 50 and let me know if that improved.
If I answer your question, please mark my post as a solution, this will also help others.
Please give Kudos for support.
Tomas Santandreu Polanco |Principal Business Intelligence Consultant
www.designmind.com
Hi
Please create the following measures:
Ranks = rankx(all(patient[disease]),[FILTERED PATIENTS TABLE])
top 50 := IF(Ranks <= 50,[FILTERED PATIENTS TABLE])
Remove your top 50 from the visual filter
Substitute measure FILTERED PATIENTS TABLE from the visual values with the top 50 and let me know if that improved.
If I answer your question, please mark my post as a solution, this will also help others.
Please give Kudos for support.
Tomas Santandreu Polanco |Principal Business Intelligence Consultant
www.designmind.com
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
17 | |
13 |
User | Count |
---|---|
41 | |
38 | |
24 | |
20 | |
20 |