Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
theaskk_1
Frequent Visitor

please suggest dax for Select Type from Table_Name where id=1 ?

Hello Team,

     can i get some dax for below SQL statement and let me know please.

 

Select "Type" From Table_Name where Id=1,

 

I dont want to create other table like summarize or calculate table by using some measure is it possible?

1 ACCEPTED SOLUTION
Jayee
Responsive Resident
Responsive Resident

Hi @theaskk_1 ,

 

Measure will give only a single value if it solves your requirement try below one

Measure = calculate(max(Type),id=1)

If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
 

View solution in original post

3 REPLIES 3
theaskk_1
Frequent Visitor

@Jayee ,
  i will telly you my requirement here .

When i select one value from slicer it should show that Name in KPI Card but when i select more than one value from slicer it suppose to show particular Name in KPI Card.

Suppose:-

values in slicer A,B,C,D.
1.when i select single value from above A,B,C,D shows respective value Card.
2.When i multi select like A and C then it show A in Card.

can you give any idea please.

Jayee
Responsive Resident
Responsive Resident

@theaskk_1 ,

 

suppose "letters" is the field name for the values A,B,C,D.

when you are using this Letters field in the slice then create a measure like

MinLetter = min(letters)

then use the filed in Card visual. it will give you the expected result

Jayee
Responsive Resident
Responsive Resident

Hi @theaskk_1 ,

 

Measure will give only a single value if it solves your requirement try below one

Measure = calculate(max(Type),id=1)

If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.