The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
So I think what I'm wanting to do is straight forward, but it's late and I'm suffering brain fog.
Want to create a measure (new column) that changes the varSENT value 'SENT' to 'SIGNED' if a date exists in the Signed On Column, and changes the varSENT value 'SENT' to 'UNSIGNED' if the Signed On value is null. I don't want the blank values in varSENT changed.
Solved! Go to Solution.
Hi @pbrainard ,
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
MAX('Signatures'[Signed ON]) <> BLANK(),
IF( [varSent] <>BLANK(),"SIGNED",[varSent]),"UNSIGNED"
)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @pbrainard ,
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
MAX('Signatures'[Signed ON]) <> BLANK(),
IF( [varSent] <>BLANK(),"SIGNED",[varSent]),"UNSIGNED"
)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hey @pbrainard,
try this measure:
Measure =
if( hasonevalue( 'yourtablename'[Signed On] )
, if( isblank( 'yourtablename'[Signed On] )
, "unsigned"
, "signed"
)
, blank()
)
Hopefully, this provides what you are looking for.
Regards,
Tom
Thanks Tom,
Getting an error: A single value for column 'Signed On' in table 'Signatures' cannot be determined....
This is how varSENT is built:
varSENT =
VAR SENT = SELECTEDVALUE('Signatures'[Status])
RETURN IF(SENT = "SENT", SENT, "")
Hey @pbrainard ,
use this one:
Measure =
if( hasonevalue( 'yourtablename'[Signed On] )
, if( isblank( calculate( max( 'yourtablename'[Signed On] ) ) )
, "unsigned"
, "signed"
)
, blank()
)
If you are wondering why I'm using MAX around the column reference, it's because there is no ROW context for this reason a column reference has to be wrapped inside an aggregation function like MAX.
Regards,
Tom
Now everything in the Measure column has a value of 'signed'
Hey @pbrainard ,
I added a CALCULATE. This is necessary use the current filter context.
Regards,
Tom
User | Count |
---|---|
58 | |
54 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |