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 Experts
i have the following formula which means to work ok, and sometime does not populate the correct result from the resulting table.
Is there a better way to re-write the formula to it returns back the result from the respectibve table based on filter selection.
so for example if i select Canada from the filter Country then look in the PMS_Complaints_Country table, the default is correct as shown below.
Tool Tip P Value = SWITCH( TRUE(), HASONEVALUE( PMS_COMPLAINT[MDR_REPORTING_REGION] ), MEDIAN( PMS_COMPLAINT_REGION[MannKendallYRegion]), HASONEVALUE( PMS_COMPLAINT[COUNTRY_ORIGIN_NM] ), MEDIAN( PMS_COMPLAINT_COUNTRY[MannKendallY] ), HASONEVALUE( PMS_COMPLAINT[MANUFACTURING_REGISTERED_SITE] ), MEDIAN( PMS_COMPLAINT_MANUFACTURING_SITE[MannKendallY]), HASONEVALUE( PMS_COMPLAINT[REPORT_REQUIRED]), MEDIAN( PMS_COMPLAINT_REPORT_REQUIRED[MannKendallY]), HASONEVALUE( PMS_COMPLAINT[REPORTED_FAILURE_MD_CD] ), MEDIAN( PMS_COMPLAINT_REPORTED_MODE[MannKendallY] ), MEDIAN( PMS_COMPLAINT[MannKendallY] ) )
Hi @Anonymous ,
Could you please share your expected result?
Best REgards,
Teige
User | Count |
---|---|
98 | |
76 | |
75 | |
49 | |
27 |