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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to filter a grouped table by filtering the base table

Hello! I have a table 1 consisting of different user actions types. I need to count how freequently different users do actions in the same subsequence. 


1) I made a table 2 with unique customers and concatinated their actions in one string.
2) I made a table 3 counting unique strings in that table 2 

 

The problem is that I need to filter by date in the interface. When i filter dates, data in the table 1 changes, table 2 shoud be rebuilded with new concatinated actions for user who was affected by the filter. So the table 3 should be also recounted. But I dont understand how can I connect table 1 and table 2. 


Снимок экрана 2022-04-27 013520.png

3 REPLIES 3
Anonymous
Not applicable

Hello! 

Снимок экрана 2022-04-29 115844.png

 


https://app.powerbi.com/groups/me/reports/f6bdda21-518d-4f1c-9be0-616af7ac0423?ctid=21f92996-c72d-4b...
https://playground.powerbi.com/ru-ru/dev-sandbox?reportId=f6bdda21-518d-4f1c-9be0-616af7ac0423

I belive achieving my first idea is imposible, since it requires PBI to reconcatine "paths" every time you filter the date, because some actions will be filtered from users paths. With real data it seems unrealistic (>10.000 rows, i cant even concatinate it, its just loading, I'm making two sql requests).  So the best thing I came up with is filtering it backwards, clicking on the last table, then on the id in the second table to see the action with date an so on.
If you have a better idea about it, Ill be very thankful. The main idea is research dependency between dates and paths.


HI @Anonymous,

I can create a measure to show the path based on the current id group and date filter, but I can't achieve the third one.

path fromula =
IF (
    HASONEVALUE ( 'Table'[ID] ),
    CONCATENATEX ( VALUES ( 'Table'[Actions] ), [Actions], "->" )
)

CONCATENATEX function (DAX) - DAX | Microsoft Docs

1.png
Current measure expression does not work as group fields to expand other calculation aggregations. Calculation columns can be worked as groups but it not able to dynamically change based on filters. (they are working on different levels)

Notice: the data level of power bi.

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

I think the basic filter feature should not be suitable for your requirement, you need to break the filter effect and use it as a selector instead of the filter. Then use the measure to extract the selection and apply the filter effect between different visuals.

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.