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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rezaaditia
Helper III
Helper III

keep measure value - ignore column fields and filter in matrix

Hi All -

 

I hope i can explain with well.

I have measure to get last 12 month data. I go t the formulat from below

https://www.ehansalytics.com/blog/2019/3/3/calculate-last-twelve-months-using-dax

 

This is my dax formula

Spoiler
CALCULATE(COUNT(Details[document])~CALCULATETABLE('Calendar'~FILTER('Calendar'~[Dates] = TRUE())))

based on above measure, lets say 

John A = 1,000

John B = 2,000

John C = 5,000

 

in same table, now i want to calculate aging bucket vs total

John A has 1,000 tickets where 740 completed and 260 in progress, and below the aging bucket. 

   0-2 days   -> 200

   3-10 days ->  50

   >10 days  ->  10 

 

Using matrix visualization, i want to know what is the percentage of John A's aging.

my expectation

0-2 days => 200 / 1,000 = 10%

3-10 days=> 50 / 1,000 = 2.5%

etc

now the issue that i faced, the denominator is got filtered based on the aging bucket, what i want the measure will keep 1,000 or 2,000 or 5,000 etc.

 

how to keep the denominator will use same measure (ignore the column and filters)

 

Thanks

1 ACCEPTED SOLUTION

Hi @rezaaditia ,

 

After my tests, you need to edit your measure like the following DAX:

Last 12 Month =
CALCULATE (
    COUNT ( [Number] ),
    CALCULATETABLE ( 'Calendar', FILTER ( 'Calendar', [PO Dates] = TRUE () ) ),
    ALL ( ref_OS_bucket )
)

Use ALL() function to remove the filter. Here is the result.

1-1.PNG

 

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

To help you further I need pbix file. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

please see below screenshot.

basically all last 12 month value (left/yellow) i want to put the value based last 12 month (right). Ignoring any filters or column in Matrix visualization.

Annotation 2019-12-27 135455.jpg

 

sample pbix https://www.dropbox.com/s/acr6p8fr5owaek1/test.pbix?dl=0

 

really appreciate it with your helps

 

Thanks

 

Hi @rezaaditia ,

 

After my tests, you need to edit your measure like the following DAX:

Last 12 Month =
CALCULATE (
    COUNT ( [Number] ),
    CALCULATETABLE ( 'Calendar', FILTER ( 'Calendar', [PO Dates] = TRUE () ) ),
    ALL ( ref_OS_bucket )
)

Use ALL() function to remove the filter. Here is the result.

1-1.PNG

 

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

Thank you so much @v-eachen-msft , its really working perfectly

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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