Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CJANE
Helper I
Helper I

Flexibility to use the same visual but show different value.

I have a data set that includes two columns.  1 column represents gross total returrn and the second column representing net total return.  I need the flexibility to show the top ten performing funds for both gross and net returns using the same visual.  Ideally the user wants the ability to see top ten gross and then have the ability to see net top ten using the same visual.  Keep in mind that the top ten can differ between gross and net.  Any help would be appreciated.

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @CJANE,

 

If I understand correctly, you want to get top10 of GrossTotal and top10 NetTotal in one visual. I create some data, and display those data in a table visual, see:

 

1. Sample data.

 

a1.PNG

 

2. In Query Editor, select those two columns and click Unpivot Columns.

 

a2.PNG

 

3. Create a table with below DAX.

Table = UNION(CALCULATETABLE(TOPN(10,FILTER('Table2',[Attribute]="GrossTotal"),[Value],DESC)),CALCULATETABLE(TOPN(10,FILTER('Table2',[Attribute]="NetTotal"),[Value],DESC)))

 

a3.PNG

 

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @CJANE,

 

If I understand correctly, you want to get top10 of GrossTotal and top10 NetTotal in one visual. I create some data, and display those data in a table visual, see:

 

1. Sample data.

 

a1.PNG

 

2. In Query Editor, select those two columns and click Unpivot Columns.

 

a2.PNG

 

3. Create a table with below DAX.

Table = UNION(CALCULATETABLE(TOPN(10,FILTER('Table2',[Attribute]="GrossTotal"),[Value],DESC)),CALCULATETABLE(TOPN(10,FILTER('Table2',[Attribute]="NetTotal"),[Value],DESC)))

 

a3.PNG

 

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.