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 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 of file delivery not more then target (If it more than target set it as target) like in Dax picture. Does it have anyway to done this?
By the way I want measure to return like column K for further calculation.
My data looklike:
Dax
In table I show, the raw data is correct base on condition from dax I provide. But total is wrong (The red box), It should sum with Var D condition but looklike it sum with Var A.
Solved! Go to Solution.
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] )
)
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] )
)
Thank you so much, It working!
1. Remember that MIN() and MAX() can take two parameters. So MIN([Value],1) will cap the result at 1 even if [Value] is higher.
2. If you want the totals to work you need to "think like the grand total". Materialize the results for each day, then do a SUMX over that.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |