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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PTSS
Frequent Visitor

How to filter accounts that have value

 

AR Days1 =
//CALCULATE([AR Days],FILTER('OLAP.Account','OLAP.Account'[Name]="AR"))

CALCULATE([AR Days],
FILTER (
'OLAP.CUBE',
RELATED ( 'OLAP.Account'[Name] ) = "AR"
))

This is the formula I use, after I make it the result is infinity.
I want to take the AR account value from the AR Days calculation,

PTSS_1-1675490065562.png

 

how to make AR Days1 appear AR account with a value of 146?

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

Hi , @PTSS 

You can try to use this dax in measure:

Measure= 
var _Cur_name= VALUES('OLAP.CUBE'[Name])
return
IF("AR" in _Cur_name , [AR Days] , BLANK())

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @PTSS 

You can try to use this dax in measure:

Measure= 
var _Cur_name= VALUES('OLAP.CUBE'[Name])
return
IF("AR" in _Cur_name , [AR Days] , BLANK())

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

thanks @v-yueyunzh-msft , this method works a lot

tamerj1
Super User
Super User

Hi @PTSS 

please use

AR Days1 =
CALCULATE ( [AR Days], KEEPFILTERS ( 'OLAP.Account'[Name] = "AR" ) )

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.