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
Syndicate_Admin
Administrator
Administrator

Allselected filtering data hierachy

Hi everybody,

When trying to delete hierarchy date filtering with ALLSELECTED in a matrix with date(rows) and Countries(columns), first hierarchy level (year) works well but the other (quarter, month, day) don't delete their filter although using multiple columns in ALLSELECTED. How could I solve it? Thanks a lot for your help !!!.

%GrandTotalsinAno = CALCULATE(SUM(FactInternetSales[SalesAmount]),
ALLSELECTED(FactInternetSales[dueDate].[ Year],
FactInternetSales[DueDate]. [Quarter],
FactInternetsales[DueDate]. [My],
FactInternetSales[DueDate]. [Day]))

(Figures not in bold should match the total column ones)

CarlomV_0-1650135588988.png

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Syndicate_Admin 
You need to also add the columns [MonthNo] and [QuarterNo]
(Alltough you don't see them in the visual they are used in the query that creates it in order for the months and quarters to be sorted correctly)

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@Syndicate_Admin 
You need to also add the columns [MonthNo] and [QuarterNo]
(Alltough you don't see them in the visual they are used in the query that creates it in order for the months and quarters to be sorted correctly)

Thanks a lot, I was convinced it should be easy but don't found it. You helped me.

You are welcome. My pleasure.
Could you please mark this as a solution 🙂
Thank you

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.