Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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 ID | Temp | Value |
| T02 | 35 | 62 |
| T03 | 33 | 56 |
| T06 | 31 | 54 |
| T01 | 35 | 59 |
| T04 | 26 | 63 |
| T05 | 27 | 57 |
| T01 | 35 | 52 |
| T02 | 27 | 65 |
| T03 | 35 | 63 |
| T01 | 30 | 64 |
| T05 | 27 | 55 |
| T01 | 26 | 65 |
| T02 | 28 | 56 |
| T06 | 30 | 52 |
| T04 | 31 | 58 |
| T05 | 33 | 51 |
| T02 | 30 | 60 |
| T01 | 29 | 59 |
| T03 | 33 | 57 |
| T02 | 27 | 53 |
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new table.
New Table =
FILTER ( Data, Data[Temp] >= 0 && Data[Temp] <= 32 )
@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.
For fun only, a showcase of powerful Excel worksheet formula,
T-SQL solution,
| 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! |
Thank you
For fun only, a showcase of powerful Excel worksheet formula,
T-SQL solution,
| 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! |
@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.
Thank you
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new table.
New Table =
FILTER ( Data, Data[Temp] >= 0 && Data[Temp] <= 32 )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |