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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
harirao
Post Prodigy
Post Prodigy

Comparison Week over week trend

Hello All,

I Have created week over week trend comparing current week with previous week, due to decimal not trend is not giving result.

Please find the below measures used to calculate trend.

 

test_Wow2 = Query1[> 6 Weeks Visibility % of Regional Total]-[Test WOW2]
WOWTrend2 = IF([test_Wow2]<0,"▼",IF([test_Wow2]>0,"▲","--"))
ColorCode2 = if(Query1[test_Wow2]<="--",0,if(Query1[> 6 Weeks Visibility % of Regional Total]=0,0,if(Query1[test_Wow2]="▲",1,-1))) //(Conditional formatting for WOWTrend2)

Current week DACH WOW trend was suppose to be "--", but it is showing up arrow 
"▲" due to 0.4% difference comparing previous week.
when every there is 0% in difference (0.1% to 0.9%)  trend should show as "--".

4.PNG
Thank You
Regards,






4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@harirao 

Not really clear about your question, the difference for DACH WOW is +0.4 so increase.  Please provide some sample data if you say it should be 0% and "--".

 

Regards
Paul

amitchandak
Super User
Super User

Hello @amitchandak ,

Thanks for your response, I am able to do week over week comparing, challenge over trend arrows not able to match on Decimals. example mentioned above for DACH
Can you please help on that.

 

Thank You

Regards,

Greg_Deckler
Super User
Super User

@harirao Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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