Forum Discussion
Measure showing error when nothing is selected in filter
- 8 years ago
Hi Anonymous,
There is a page level filter "ID SURVRY"[name]. So the ISCROSSFILTERED('ID SURVEY'[Name]) is always TRUE. I don't know how to get the number. Make changes to the blue part. It would work.
MEASURE FILTER = IF ( ISCROSSFILTERED ( CYCLE[Cycle Name] ), SWITCH ( TRUE (), [Filter Cycle] = "Cycle2", [Total Sales], [Filter Cycle] = "Cycle1", IF ( HASONEVALUE ( 'ID SURVEY'[Name] ), SWITCH ( TRUE (), [Filter Survey] = "Survey 1", 213480, [Filter Survey] = "Survey 2", 387865, [Filter Survey] = "Survey 3", 218488, [Filter Survey] = "Survey 4", 248844, BLANK (), 831558, BLANK () ), 831558 ) ), 931558 )Best Regards!
Dale
I've got something similar in one of my reports where I need to have no more than one value selected, wrapping the entire formula in if(hasonevalue(your measure),your measure,blank) works for me but it's a slightly different setup to what you want where you want at least one option selected, rather than at most one option
jthomson thx so much for ur help, but your formula no work's to me :(
- v-jiascu-msft8 years ago
Microsoft Employee
Hi Anonymous,
Could you please share a dummy pbix file? The relationship between two tables and the model structure should be considered.
Best Regards!
Dale
- Anonymous8 years agoNot applicable
v-jiascu-msft here is the example of my data... thx for ur help!!
https://drive.google.com/open?id=1jFfNB0vMtBq8c06tT-4viEoQYC_CYT_U
:)
- Anonymous8 years agoNot applicable
someone can help me, I can not do what works the way I want... thx guys