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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jananagarajan
Regular Visitor

Help Needed in Writing a Calculation

My requirement is  keeping ID as Fixed  find the value when the Temp is between 0 and 32. I have written a calculation in tableau and would like to wirte the same calculation in  DAX. Kindly help me

 

{ FIXED [CustomerID] : MIN(

IF [Temp] >= 0 AND [Temp] <= 32 THEN [Value]

END

)}

 

Sample data is attached 

 

Customer IDTempValue
T023562
T033356
T063154
T013559
T042663
T052757
T013552
T022765
T033563
T013064
T052755
T012665
T022856
T063052
T043158
T053351
T023060
T012959
T033357
T022753

 

3 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1664194324526.png

 

New Table =
FILTER ( Data, Data[Temp] >= 0 && Data[Temp] <= 32 )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

AbbasG
Memorable Member
Memorable Member

@jananagarajan You can achieve this through visual or page-level filters.

In the below image, I have applied a visual level filter on the Temp field. Hope this helps.

 

AbbasG_0-1664194536296.png

 

View solution in original post

CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1664196692925.png

 

For fun only, a showcase of powerful Excel worksheet formula,

CNENFRNL_1-1664196862800.png

 

T-SQL solution,

CNENFRNL_0-1664198274603.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

5 REPLIES 5
jananagarajan
Regular Visitor

Thank you

CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1664196692925.png

 

For fun only, a showcase of powerful Excel worksheet formula,

CNENFRNL_1-1664196862800.png

 

T-SQL solution,

CNENFRNL_0-1664198274603.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

AbbasG
Memorable Member
Memorable Member

@jananagarajan You can achieve this through visual or page-level filters.

In the below image, I have applied a visual level filter on the Temp field. Hope this helps.

 

AbbasG_0-1664194536296.png

 

Thank you

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1664194324526.png

 

New Table =
FILTER ( Data, Data[Temp] >= 0 && Data[Temp] <= 32 )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.