Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Everyone
if I have a set of data in a column and I want to be able to flag the peaks and troughs how would I go about writing that in power query?
I basically have the conditions I want to use that would flag a peak, for example if it went above a certain value and then dropped below that value that would be one peak...
Thanks in advance
Solved! Go to Solution.
Hi @Sedos101 ,
Could you please provide some sample data(exclude sensitive data) and special example to illustrate your expected result? If you want to get the column base on some conditions in Power Query, you can refer the following links to get it.
if 2 > 1 then 2 else 1 // 2
if 1 = 1 then "yes" else "no" // "yes"
Mastering IF Statements in Power Query – Including Nested IF-Statements
Best Regards
Hi @Sedos101 ,
Could you please provide some sample data(exclude sensitive data) and special example to illustrate your expected result? If you want to get the column base on some conditions in Power Query, you can refer the following links to get it.
if 2 > 1 then 2 else 1 // 2
if 1 = 1 then "yes" else "no" // "yes"
Mastering IF Statements in Power Query – Including Nested IF-Statements
Best Regards
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |