Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi Team, Need some help to convert tableau expression to power bi "ATTR([TSR Created Date _ Today N])", i tried with selectedvalue function but it's not working so can anyone help me how to convert from Tableau to Power bi.
Solved! Go to Solution.
@sreddy47652 These usually go better if you provide sample data and expected result but in this case, I believe the equivalent DAX is:
Measure =
VAR __Table = SUMMARIZE( 'Table', [TSR Created Date _ Today N] )
VAR __Result = IF( COUNTROWS( __Table ) > 1, "*", MAXX( __Table, [TSR Created Date _ Today N] ) )
RETURN
__Result
Hi @sreddy47652 ,
See the below data:
When I use attr:
Final I get:
Import data to Power BI:
You can try this DAX code:
ATTR =
VAR MAXVALUE =
CALCULATE (
MAX ( 'Table'[State] ),
FILTER ( ALL ( 'Table' ), 'Table'[City] = MAX ( 'Table'[City] ) )
)
VAR MINVALUE =
CALCULATE (
MIN ( 'Table'[State] ),
FILTER ( ALL ( 'Table' ), 'Table'[City] = MAX ( 'Table'[City] ) )
)
RETURN
IF ( MAXVALUE = MINVALUE, MAX ( 'Table'[State] ), "*" )
Finally you will get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@sreddy47652 These usually go better if you provide sample data and expected result but in this case, I believe the equivalent DAX is:
Measure =
VAR __Table = SUMMARIZE( 'Table', [TSR Created Date _ Today N] )
VAR __Result = IF( COUNTROWS( __Table ) > 1, "*", MAXX( __Table, [TSR Created Date _ Today N] ) )
RETURN
__Result
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
60 | |
50 | |
45 |