Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

[DAX] how to change row context to column in relation to a date

$
0
0

Hi,

 

I found already half solution of my problem in this post (https://community.powerbi.com/t5/Desktop/DAX-how-to-change-row-context-to-column/m-p/42610#M16308).

But I need to have the results by a specific date.

Here is a example of how the data looks like and how I want to have it.

 

Device CategoryDateAvg. Order ValueConversionTransactionSessionsSales Line
desktop01.01.201611,560,2612514589MMDE
desktop02.01.201611,560,2612514589MMDE
desktop03.01.201611,560,2612514589MMBE
desktop04.01.201611,560,2612514589MMBE
desktop05.01.201611,560,2612514589MMSE
desktop06.01.201611,560,2612514589MMSE
desktop07.01.201611,560,2612514589MMGR
desktop08.01.201611,560,2612514589MMGR
desktop09.01.201611,560,2612514589MMDE
desktop10.01.201611,560,2612514589MMBE
desktop11.01.201611,560,2612514589MMSE
       
       
DateMMDEMMBEMMSEMMGR  
01.01.20160,26000  
02.01.20160,26000  
03.01.201600,2600  
04.01.201600,2600  
05.01.2016000,260  
06.01.2016000,260  
07.01.20160000,26  
08.01.20160000,26  

 

 

When I use the DAX expression from the post I get the same amount of each date.

 

Calculated Column:

 

MMDE = CALCULATE(AVERAGEX(ALL_DATA_ALL;ALL_DATA_ALL[Ecommerce Conversion Rate]);ALL_DATA_ALL[Sales Line]="MMDE")

 

Thanks you in advance.

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>