Forum Discussion
Continuous Percntages value conversion into a different range
- 6 years ago
Due to the privacy issues, I'm unable to download your pbix file.
Sample table
Name Contribution A 10.00% B 30.00% C 50.00% D 70.00% E 20.00% Range table
Range 0-20 21-40 40 above Create a DAX measure.
Filter = VAR _range = SELECTEDVALUE ( RangeTable[Range] ) VAR _per = ContributionTable[Contribution Sales %] VAR _filter = IF ( _range = "0-20", IF ( _per > 0 && _per < .21, "Required", "Not Required" ), IF ( _range = "21-40", IF ( _per > .20 && _per < .41, "Required", "Not Required" ), IF ( _range = "40 above", IF ( _per > 40, "Required", "Not Required" ) ) ) ) RETURN _filterApply this measure as a visual level filter.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
kamalbandam Please provide a sample data set, and measure logic. then expected output.
- kamalbandam6 years agoHelper III
Please download the pbix sample form https://filebin.net/hkxo3gmkp2ptci1x
Please change the extension to .pbix if it downloads as Zip.
The ouput expected as follows:Thanks & Regards,
Kamal
- nandukrishnavs6 years agoCommunity Champion
Due to the privacy issues, I'm unable to download your pbix file.
Sample table
Name Contribution A 10.00% B 30.00% C 50.00% D 70.00% E 20.00% Range table
Range 0-20 21-40 40 above Create a DAX measure.
Filter = VAR _range = SELECTEDVALUE ( RangeTable[Range] ) VAR _per = ContributionTable[Contribution Sales %] VAR _filter = IF ( _range = "0-20", IF ( _per > 0 && _per < .21, "Required", "Not Required" ), IF ( _range = "21-40", IF ( _per > .20 && _per < .41, "Required", "Not Required" ), IF ( _range = "40 above", IF ( _per > 40, "Required", "Not Required" ) ) ) ) RETURN _filterApply this measure as a visual level filter.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂- kamalbandam6 years agoHelper III
Great Solution. It worked very well.
Thank you very much