Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
I want to use this Qlikview Expresiion i:-
=if(GetSelectedCount(REGIME)=0,
sum({<Year={$(=max(Year))},REGIME={'C*'},Flag={'B'}>}DUTY)+sum({<Year={$(=max(Year))},Flag={'C'}>}DUTY),
sum({<Year={$(=max(Year))},Flag={'B'}>}DUTY)+sum({<Year={$(=max(Year))},Flag={'C'}>}DUTY))
in power Bi measure can anyone tell me? and share any solution
Solved! Go to Solution.
HI @ARVINDlsllp,
You can try to use the following measure formula if it helps with your scenario:
formula =
VAR currYear =
MAX ( 'YourTable'[Year] )
RETURN
CALCULATE (
SUM ( 'YourTable'[DUTY] ),
FILTER (
ALLSELECTED ( 'YourTable' ),
IF (
COUNTROWS ( ALLSELECTED ( 'YourTable'[REGIME] ) ) = 0,
OR (
AND (
'YourTable'[Year] = currYear,
SEARCH ( "C*", 'YourTable'[REGIME], 1, -1 ) > 0
&& 'YourTable'[Flag] = "B"
),
AND ( 'YourTable'[Year] = currYear, 'YourTable'[Flag] = "C" )
),
AND ( 'YourTable'[Year] = currYear, 'YourTable'[Flag] IN { "B", "C" } )
)
)
)
Regards,
Xiaoxin Sheng
HI @ARVINDlsllp,
You can try to use the following measure formula if it helps with your scenario:
formula =
VAR currYear =
MAX ( 'YourTable'[Year] )
RETURN
CALCULATE (
SUM ( 'YourTable'[DUTY] ),
FILTER (
ALLSELECTED ( 'YourTable' ),
IF (
COUNTROWS ( ALLSELECTED ( 'YourTable'[REGIME] ) ) = 0,
OR (
AND (
'YourTable'[Year] = currYear,
SEARCH ( "C*", 'YourTable'[REGIME], 1, -1 ) > 0
&& 'YourTable'[Flag] = "B"
),
AND ( 'YourTable'[Year] = currYear, 'YourTable'[Flag] = "C" )
),
AND ( 'YourTable'[Year] = currYear, 'YourTable'[Flag] IN { "B", "C" } )
)
)
)
Regards,
Xiaoxin Sheng
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |