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
verinalobo
Regular Visitor

Compare data and print the percentage of difference between the two

Hello,

I am fairly new to PowerBI and need help with a query for comparison of data for different dates. This is the data I have:

 

RunIDDateTransactionValue
10001-Aug-2301_Launch10
10001-Aug-2302_Login10
10001-Aug-2303_Search9
10001-Aug-2304_Order8
10001-Aug-2305_Payment10
10001-Aug-2306_Logout9
10102-Aug-2301_Launch8
10102-Aug-2302_Login7
10102-Aug-2303_Search7
10102-Aug-2304_Order8
10102-Aug-2305_Payment9
10102-Aug-2306_Logout4
10205-Aug-2301_Launch11
10205-Aug-2302_Login12
10205-Aug-2303_Search11
10205-Aug-2304_Order14
10205-Aug-2305_Payment9
10205-Aug-2306_Logout7
10310-Aug-2301_Launch8
10310-Aug-2302_Login9
10310-Aug-2303_Search7
10310-Aug-2304_Order8
10310-Aug-2305_Payment6
10310-Aug-2306_Logout5

 

I need a query that will have a table printed with the comparison of two RunIDs or Date (based on the selection made using slicers). The table should look something like the one below. It should show the % of inprovement or degradation for every transaction between runs. (The RunID is always unique). Eg of the formula in excel: D2=(B2-C2) in %

 

TransactionRun 100Run 101Comparison 100 vs 101
01_Launch108200%
02_Login107300%
03_Search97200%
04_Order880%
05_Payment109100%
06_Logout94500%

 

Thanks in advance!

1 REPLY 1
verinalobo
Regular Visitor

Hello, 

 

A small change to what I am looking for:

The comparison doesn't necessarilty have to be between two RunIDs selected using slicers, but it could just be the latest RunID vs the previous RunID.

 

Thanks!

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.