ddi-xslt icon indicating copy to clipboard operation
ddi-xslt copied to clipboard

Calculate percentage for weighted and unweighted variable

Open borsna opened this issue 1 year ago • 7 comments

Bug in transformations/fo/from-ddi-2.5 result: export2.pdf

borsna avatar Dec 07 '23 10:12 borsna

export.txt I changed the extension from xml to txt since github would not add xml.

lubitchv avatar Dec 07 '23 15:12 lubitchv

Will take a look in a few days and get back to you (hopefully with a nice fix 🙂)

borsna avatar Dec 07 '23 16:12 borsna

My colleague @JayanthyChengan found that Percentage category does not shows up because xsl tries to build bars in a cell for Percentages. By removing the bars and leaving $catgry-pct the percentage shows up now. I updated the repository with this fix.

lubitchv avatar Feb 02 '24 19:02 lubitchv

great fix @lubitchv! Did this resolve all the cases for percentage for weighted and unweighted variable now showing up?

borsna avatar Feb 03 '24 16:02 borsna

Yes, if variable is weighted then it shows weighted percentage and it if is unweighted then it shows unweighted percentage. I opened a pull request to IQSS Harvard to incorporate it in Dataverse. https://github.com/IQSS/dataverse/pull/10295

lubitchv avatar Feb 03 '24 20:02 lubitchv

Great work @lubitchv & @JayanthyChengan! Could you show the integration in DataVerse at the next virtual DDI Developers meeting? No date set yet but we will certainly keep it at 16:00 CET.

borsna avatar Feb 07 '24 19:02 borsna

Yes, of course.

lubitchv avatar Feb 07 '24 20:02 lubitchv