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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Everyone,
We are converting report from Qlikview to Power BI. Please help me to write DAX expression for the same. I wrote the dax expression but I am not getting expected result.
Dax expression:
Hi @Kavya123 ,
Did you get the expected result base on my provided measure formulas? If yes, could you please mark it as Answered? It will help the others find the solution easily if they face the same problem with you. Thank you.
Best Regards
Hi @Kavya123 ,
You can create the measeures as below:
Avg score of 1209 =
AVERAGEX (
FILTER (
ALLSELECTED ( 'PROFILERTABLENEWSUBMITTED Score' ),
'PROFILERTABLENEWSUBMITTED Score'[PDataPoint] = 1209
&& 'PROFILERTABLENEWSUBMITTED Score'[Answer_Flag] = 1
),
'PROFILERTABLENEWSUBMITTED Score'[NEWScore]
)
Avg score of 1210 =
AVERAGEX (
FILTER (
ALLSELECTED ( 'PROFILERTABLENEWSUBMITTED Score' ),
'PROFILERTABLENEWSUBMITTED Score'[PDataPoint] = 1210
&& 'PROFILERTABLENEWSUBMITTED Score'[Answer_Flag] = 1
),
'PROFILERTABLENEWSUBMITTED Score'[NEWScore]
)
Avg score of Total =
FLOOR (
AVERAGEX (
FILTER (
ALLSELECTED ( 'PROFILERTABLENEWSUBMITTED Score' ),
'PROFILERTABLENEWSUBMITTED Score'[Answer_Flag] = 1
),
'PROFILERTABLENEWSUBMITTED Score'[NEWScore]
),
1
)
Measure =
CALCULATE (
DISTINCTCOUNT ( 'PROFILERTABLENEWSUBMITTED Score'[POrganization] ),
FILTER (
ALLSELECTED ( 'PROFILERTABLENEWSUBMITTED Score' ),
[Avg score of 1210] < [Avg score of total]
&& [Avg score of 1210] > [Avg score of 1209]
)
) + 0
If the above one is not working, please provide some sample data (exclude sensitive data) and your expected result with sample or screenshots. Thank you.
Best Regards
Please provide sample data in usable format (not as a picture) and show the expected outcome.