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.
I have this measure in DAX:
SWITCH ( TRUE () , MIN ( 'Dynam'[ID] ) = 5 , DIVIDE ( [Gross] , [Revenue] ) * 100, MIN ( 'Dynam'[ID] ) = 8 , [Hours] )
I would like different formats for 1st and 2nd row... I would like the first one to have one decimal, but not the second one.
Can I do a formatting for one row only? (in either DAX or Power BI)
Hi @Anonymous
you can use FORMAT function to return the desired format of each result separately. For example
MyMeasure =
SWITCH (
TRUE (),
MIN ( 'Dynam'[ID] ) = 5, FORMAT ( DIVIDE ( [Gross], [Revenue] ) * 100, "#0.0" ),
MIN ( 'Dynam'[ID] ) = 8, [Hours]
)
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |