Forum Discussion
Mokegubshook
Helper I
1 year agoCompare number with target incorrect
Hi guys, I have data like in the picture, My problem is I want to compare number of file delivery and Target in everyday. I have many file and each file have the target. My problem is I want number ...
- 1 year ago
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
expected result measure: = SUMX ( VALUES ( dim_table_name[column_name_in_matrix_visual] ), IF ( [CNT_FILE_ID] > [Target], [Target], [CNT_FILE_ID] ) )
Jihwan_Kim
Super User
1 year agoHi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
expected result measure: =
SUMX (
VALUES ( dim_table_name[column_name_in_matrix_visual] ),
IF ( [CNT_FILE_ID] > [Target], [Target], [CNT_FILE_ID] )
)
Mokegubshook
Helper I
1 year agoThank you so much, It working!