new user
3 TopicsConsulta suma con filtros (?)
Hola! tengo que hacer una suma de las precipitaciones anuales de varias estaciones meteorológicas, para lo cual tengo una columna de precipitaciones (en mm) una de la fecha de dicha precipitacion (día, mes, año) y otra del ID de la Estacion meteorológica. Cómo hago para poder obtener cuanto llovio por año por estación? Estuve googleando pero no encontré nada que entendiera como para poder hacerlo. Desde ya muchisimas gracias por cualquier ayuda o guía. Saludos!Solved1.1KViews0likes5CommentsQuestion on Slicer and Cumulative Totals
Hi community, I am a new here. I am just getting started with learning Power BI and am using this query as a learning experience to post my first ever question to the forum.. I have an issue I am working on in a large data set but created very simple version for this query. I can't seem to upload an excel file here so will just some sample rows into a table below to help give the idea, I hope that helps. What my goal is to have a Line Chart with the 12 periods on the axis and cumulative totals as the values. Then I want to have a slicer so I can compare the different countries. I created a Dax Query to calculate the cumulative totals (which is where I suspect my error is) Cumulative Total = CALCULATE( SUM(Sheet1[Amount]), FILTER( ALLSELECTED(Sheet1), Sheet1[Period] <= MAX(Sheet1[Period]) ) ) However now when I use my slicer I get the combined total of the different all the countries selected. Not the individual countries which is what I am after. As I say, I suspect it is my DAX query, perhaps the filtering. Could someone please help, and once again, I am new, please do let me know if I am posting in the wrong place. All advice and help is very welcome 🙂 Pete An example of my dataset follows, In reality I have about 50 countries and 12 periods (for each month) but hopefully this helps to get a general idea.. Country Period Amount India 1 24 India 1 51 China 1 90 Brazil 2 91 Greenland 2 100 Mongolia 3 49 China 4 27 Greenland 5 44 Brazil 5 53Solved907Views0likes2CommentsDeferred Revenue - Help with DAX Please!
Hi! I need to recognize the Charge Amount in Appropriate month evenly throughout the year. Here is an example of the raw data: RIS & RAL Annual Bill + RIS Monthly BL_DT BL_CHRG_AMT Month Start Date Month End Date BL_TYP_TXT 01/20/2020 1000 01/01/2020 01/31/2020 Monthly 02/27/2020 1000 02/01/2020 02/29/2020 Monthly 03/31/2020 1000 03/01/2020 03/31/2020 Monthly 04/30/2020 500 04/01/2020 04/30/2020 Monthly 05/28/2020 500 05/01/2020 05/31/2020 Monthly So far I have been able to calculate the red amounts with the following expression: Jan Feb Mar Apr May 01/20/2020 83.33 83.33 83.33 83.33 83.33 02/27/2020 166.67 83.33 83.33 83.33 03/31/2020 250.00 83.33 83.33 04/30/2020 166.67 41.67 05/28/2020 208.33 RIS Monthly Arrival = sumx(FILTER('RIS & RAL Annual Bill + RIS Monthly', 'RIS & RAL Annual Bill + RIS Monthly'[BL_DT] >= 'RIS & RAL Annual Bill + RIS Monthly'[Month Start Date] && 'RIS & RAL Annual Bill + RIS Monthly'[BL_DT] <= 'RIS & RAL Annual Bill + RIS Monthly'[Month End date] && 'RIS & RAL Annual Bill + RIS Monthly'[BL_TYP_TXT] <> "Annual"), 'RIS & RAL Annual Bill + RIS Monthly'[BL_CHRG_AMT]*(month('RIS & RAL Annual Bill + RIS Monthly'[BL_DT])/12)) I cant figure out the black values with DAX (the amounts presented are what it should come out to, calculated in excel). I tried this expression but it comes up blank. I think the issue is the bolded portion: RIS Monthly Deferred = sumx(FILTER('RIS & RAL Annual Bill + RIS Monthly', 'RIS & RAL Annual Bill + RIS Monthly'[BL_DT] < Month( 'RIS & RAL Annual Bill + RIS Monthly'[Month Start Date]) && 'RIS & RAL Annual Bill + RIS Monthly'[BL_TYP_TXT] <> "Annual" && YEAR('RIS & RAL Annual Bill + RIS Monthly'[BL_DT])=YEAR('RIS & RAL Annual Bill + RIS Monthly'[Month Start Date])), 'RIS & RAL Annual Bill + RIS Monthly'[BL_CHRG_AMT]*(1/12)) Thank you in advance!Solved2.8KViews0likes6Comments