nee help
6 TopicsDAX count if dates < or >= relating date
Hi I have two tables that are related via the Property Ref column. Table 1 - Property (1 row per property) Property Ref Address Inspection Date DAX - repair count < repair date DAX - repair count >= repair date 18 100 Dax Road 05/07/2021 4 1 35 45 Query Street 12/09/2021 1 6 57 205 Folding Avenue 05/07/2022 5 2 Table 1 - Repairs (Possibly many repairs per property) Job Ref Property Ref Trade Repair Date 13879 18 ELEC 11/03/2021 17312 18 PLUM 13/03/2021 16407 18 ELEC 20/03/2021 19216 18 CARP 04/07/2021 16085 18 PLUM 18/08/2021 16232 35 CARP 08/09/2021 17039 35 ELEC 12/09/2021 18691 35 PLUM 10/11/2021 18023 35 ELEC 13/11/2021 12530 35 PLUM 08/12/2021 13056 35 ELEC 02/02/2022 19993 35 ELEC 22/03/2022 17772 57 ELEC 24/03/2022 16143 57 ELEC 30/03/2022 15045 57 CARP 19/05/2022 14352 57 ELEC 28/05/2022 10209 57 CARP 04/07/2022 12114 57 CARP 18/07/2022 14367 57 CARP 25/09/2022 I require two DAX functions to count the number of repairs for each property ref DAX FUNCTION 1 - if the Repair date (repairs table) is less than (<) the Inspection date (property table) DAX FUNCTION 2 if the Repair date (repairs table) is freaterthan or equal (>=) to the Inspection date (property table) Here is my expected results Property table Property Ref Address Inspection Date DAX - repair count < repair date DAX - repair count >= repair date 18 100 Dax Road 05/07/2021 4 1 35 45 Query Street 12/09/2021 1 6 57 205 Folding Avenue 05/07/2022 5 2 thank you RIchardSolved1.2KViews0likes6CommentsFind the Latest Order date in the selected date range for Tag ID
Hi, I want to display the last order date for tag id with in selected date range. Figure 1: Month MAY Month : April with respective of the selected month, should show only one record in a month for a Tag ID's Please advice , measure or calculated column.Solved625Views0likes1CommentHow to add or substract measures created in DAX and obtained from Source SQL?
Hi Experts, I have some averages and Count I have from source file via the T-SQL and I have to create a few measures in the DAX Example in my case TotalCntSales (I have this from SQL and in Dax showing up as Summation symbol) Now I created Dax with Total sales of Sales_East, SalesWest As a validity check I wanted to create measure with Total Other Sales = TotalCntSales - (Measure_Sales_East + Measure_Sales_West) But I can only see the Measures Created in Dax not what I have derived from Source. Workaround. I have created another measure in Dax for Total Sales but want to know if there is a smarter ways of doing it? Thanks a lot.390Views0likes1CommentHow to preserve excel formatting while exporting to excel in Power BI Report Builder
Hi Community, I need below requirement. How to preserve default excel formatting boarders for other cells which are not part of report output ,while exporting to excel in Power BI Report Builder. What i am getting now: My Expectation: Other cells in excel export default boarders shoud populate.Solved819Views0likes1CommentFORMAT function with standard string and 1 decimal digit
I have a pivot table and for the calculation of the values i am using a switch statement. For each different row i have a different calculation. Code of each row is like this: SWITCH(SELECTEDVALUE(v_raw_data[metric_code]), "T_01",FORMAT([T_01],SELECTEDVALUE(v_raw_data[value_formatter])), BLANK()) In the value_formatter i am using the standard string list. PREDEFINED NUMERIC FORMATS Format Description "General Number" Displays number with no thousand separators. "Currency" Displays number with thousand separators, if appropriate; displays two digits to the right of the decimal separator. Output is based on system locale settings. "Fixed" Displays at least one digit to the left and two digits to the right of the decimal separator. "Standard" Displays number with thousand separators, at least one digit to the left and two digits to the right of the decimal separator. "Percent" Displays number multiplied by 100 with a percent sign (%) appended immediately to the right; always displays two digits to the right of the decimal separator. "Scientific" Uses standard scientific notation, providing two significant digits. "Yes/No" Displays No if number is 0; otherwise, displays Yes. "True/False" Displays False if number is 0; otherwise, displays True. "On/Off" Displays Off if number is 0; otherwise, displays On. In the way that this works if decimals exist then i always get 2 decimals. Else i have integers. I am giving you also i picture How can i change it to give me if we have decimals only one. But not all values to have one decimal. In another way if i have these two function: 1) FORMAT ( 5, "0.#" ) 2) FORMAT ( 0.56, "0.#" ) How can i succeed with a result of 1) 5 2) 0.6 with the same String format.Solved22KViews0likes3CommentsParent life matches to child life or not?
Hi Team, Could you please help me out with below scenario, I need a calculate colum to get the result column, Here We are considering Sno=0 is a Parent. Example, Asset 1001 with Sno=0 is a Parent asset, and their child are Asset 1001, sno=1 and 2(Need to consider Code as well).. Parent life is 12 years 0months In above image we can see, Asset 1001 and sno 1 is child and their life is not equal to Parent Life so it is "Anamoly" second Child , Asset 1001 and sno 2 is 2nd child and their life is equal to Parent so it is "Not Anamoly". We need to consider code and Asset. Regards, Siva554418Views0likes1Comment