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
Boja
Advocate II
Advocate II

count of latest and previous volumes ignoring selection

Hello good people 🙂

 

I want to calculate the difference in response count of different app versions. Based on the selection of the version on the bar chart, the table shoud show count of selected version, count of previous version and their difference.

 I have created a column assigning rank numbers to app versions (where the latest version has the rank of 1) and this is used in creating measures. My problem is that when one bar is selected count of the previous version is not displayed. Could you pease assist?

 a.png

verMax= CALCULATE([# Feedback],
                   FILTER(BIReport, BIReport[rank ver] = MIN(BIReport[rank ver])
                    
)) 


ver(Max-1)= CALCULATE([# Feedback],
                   FILTER(ALLEXCEPT(BIReport,BIReport[AppVersion Corrected]), BIReport[rank ver] = MIN(BIReport[rank ver])+1
                    
))


Difference = [ver(Max-1)] - [verMax]

 

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @Boja,

 

Generally if we want to ignore the selection, we can add ALL() function. Like:

 

verMax= CALCULATE([# Feedback],
                   FILTER(ALL(BIReport), BIReport[rank ver] = MIN(BIReport[rank ver])
                    
)) 

By the way, could you please share us your pbix file with One Drive or Google Drive if possible? So that we can dig deeper and provide more proper suggestion.

 

Thanks,
Xi Jin.

Hi Xi Jin,

 

Thank you for assistance.

The ALL() funciton aggregates values based on app version. I dont need aggregation, but the distribution of responses (by Subtopics) as it is. So if i select version 8.19 on the bar chart, the table should show me subtopics distribution for 8.19 and 8.18.

 

1.png

 

Please find the link

DataSet

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.