Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. SELECT
  2. [Measures].[Liczba dostarczanych paczek] on columns,
  3. [ID Czasu Odebrania].[Godzina].allmembers ON ROWS
  4. FROM hd51
  5.  
  6. ZWRACA cos w stylu
  7. Godzina Liczba dostarczonych paczek
  8. 1 null
  9. 10 null
  10. 11 2
  11. ...
  12.  
  13.  
  14.  
  15. a
  16. WITH
  17. MEMBER [Measures].[Godziny] AS 'COUNT( Filter([Measures].[Liczba dostarczanych paczek] , [ID Czasu Odebrania].[Godzina]>[8]))'
  18. MEMBER [Measures].[Procent] AS '[Measures].[Godziny]/[Measures].[Liczba dostarczanych paczek]'
  19.  
  20. SELECT
  21. {[Measures].[Godziny]} ON COLUMNS,
  22. {[ID Daty Odebrania].[Miesiąc].[Miesiąc]} ON ROWS
  23. FROM hd51
  24.  
  25. zwraca ze w miesiacu w ktorym sa wyslane wszystkie paczki jest tylko 1 taka ktora zostala dpostarczona po 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement