The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I am using the slicer to select hours from 0 to 23, and whatever that is selected between the slicer is selected working hours and rest should be considered as not working hours, and based on these i need to do value a - b for selected hours and assumed value c - d for non selected hours
for this when I tried MIN( table[column]) and MAX(table[column]) is not working everywhere, it is working on card and table but not on calculations
Based on the slicer selection if i try selecting in checkbox like below:
I am getting 0 and 23 as not working hour and rest all as working, since min and max is taking 0 and 23 and not the slicer selected value.
Kindly help how to select the ranges dynamically and not 0 or 23 as min and max
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a measure.
_slicermin =
MINX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
_slicermax =
MAXX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a measure.
_slicermin =
MINX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
_slicermax =
MAXX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
14 | |
12 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |