Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |