Forum Discussion
Condition to return text value
- 9 years ago
Hi George,
Have a look at Static Segmentation on DAX Patterns:
http://www.daxpatterns.com/static-segmentation/
As long as your times have Data Type Time, you should be able to use this approach.
Owen :)
- 9 years ago
Hi GeorgeAnonymous
Just making sure - you should use the VALUES function (not the VALUE function) in that pattern.
VALUES ( Dayparts[Daypart] ) is used to return a single value from the Dayparts[Daypart] column corresponding to each row of Programmes.
(The VALUE function is used to convert text to numbers).
The Dayparts table should not be related to Programmes for Static Segmentation.
Here is a dummy pbix file illustrating how you could create a Static Segmentation calculated column using the tables in your example.
https://www.dropbox.com/s/ike0q13pxhr3oca/Static%20segmentation%20time.pbix?dl=1
Hi GeorgeAnonymous
Just making sure - you should use the VALUES function (not the VALUE function) in that pattern.
VALUES ( Dayparts[Daypart] ) is used to return a single value from the Dayparts[Daypart] column corresponding to each row of Programmes.
(The VALUE function is used to convert text to numbers).
The Dayparts table should not be related to Programmes for Static Segmentation.
Here is a dummy pbix file illustrating how you could create a Static Segmentation calculated column using the tables in your example.
https://www.dropbox.com/s/ike0q13pxhr3oca/Static%20segmentation%20time.pbix?dl=1
Hi OwenAuger
I am in urgernt need and request your help in following scenario
I have a mapping of Cluster and LOCs and want to display LOCs in a PBI Matrix object with different KPIs for the filtered Cluster in slicer.
Cluster1 LOC1
Cluster1 LOC2
Cluster1 LOC3
Cluster1 LOC4
Cluster2 LOC1
Cluster2 LOC2
Cluster3 LOC3
Cluster3 LOC4
My requirement is if no Cluster is filtered in slicer then it should show the list of LOCs for "Cluster1" only